Browse Source

Fix txb.__overMaximumFees for segwit

hk-custom-address
junderw 7 years ago
committed by Daniel Cousens
parent
commit
6e5742d86d
  1. 2
      src/transaction_builder.js

2
src/transaction_builder.js

@ -648,7 +648,7 @@ TransactionBuilder.prototype.__build = function (allowIncomplete) {
if (!allowIncomplete) {
// do not rely on this, its merely a last resort
if (this.__overMaximumFees(tx.byteLength())) {
if (this.__overMaximumFees(tx.virtualSize())) {
throw new Error('Transaction has absurd fees')
}
}

Loading…
Cancel
Save