Add fee estimation functions for dogecoin and litecoin

This commit is contained in:
Wei Lu 2014-06-17 16:23:09 +08:00
parent 122b613eaf
commit bc3e0770f9
3 changed files with 106 additions and 21 deletions

View file

@ -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() {