Move fee estimation into networks.js

This commit is contained in:
Wei Lu 2014-06-17 14:48:06 +08:00
parent 79ec61d085
commit 122b613eaf
3 changed files with 36 additions and 5 deletions

View file

@ -237,7 +237,7 @@ function Wallet(seed, network) {
tmpTx.addOutput(getChangeAddress(), 0)
var byteSize = tmpTx.toBuffer().length
return network.feePerKb * Math.ceil(byteSize / 1000)
return network.estimateFee(byteSize)
}
function getChangeAddress() {