Fix txb.__overMaximumFees for segwit
This commit is contained in:
parent
9503e64bde
commit
6e5742d86d
@ -648,7 +648,7 @@ TransactionBuilder.prototype.__build = function (allowIncomplete) {
|
|||||||
|
|
||||||
if (!allowIncomplete) {
|
if (!allowIncomplete) {
|
||||||
// do not rely on this, its merely a last resort
|
// 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')
|
throw new Error('Transaction has absurd fees')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user