Fix txb.__overMaximumFees for segwit
This commit is contained in:
parent
9503e64bde
commit
6e5742d86d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue