Add fee estimation functions for dogecoin and litecoin
This commit is contained in:
parent
122b613eaf
commit
bc3e0770f9
3 changed files with 106 additions and 21 deletions
src
|
@ -236,8 +236,7 @@ function Wallet(seed, network) {
|
|||
var tmpTx = tx.clone()
|
||||
tmpTx.addOutput(getChangeAddress(), 0)
|
||||
|
||||
var byteSize = tmpTx.toBuffer().length
|
||||
return network.estimateFee(byteSize)
|
||||
return network.estimateFee(tmpTx)
|
||||
}
|
||||
|
||||
function getChangeAddress() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue