diff --git a/CHANGELOG.md b/CHANGELOG.md index e73cd4b..ba8f5b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## 2.1.42 + +update bsv lib +- fix transaction over the maximum block size +- `signTx` add `hashCache` parameter + ## 2.1.37 - update bsv lib diff --git a/patches/bsv/lib/transaction/transaction.js b/patches/bsv/lib/transaction/transaction.js index e35c7d5..adb16d1 100644 --- a/patches/bsv/lib/transaction/transaction.js +++ b/patches/bsv/lib/transaction/transaction.js @@ -62,7 +62,6 @@ function Transaction (serialized) { var CURRENT_VERSION = 1 var DEFAULT_NLOCKTIME = 0 -var MAX_BLOCK_SIZE = 1000000 // Minimum amount for an output for it not to be considered a dust output Transaction.DUST_AMOUNT = 1 @@ -1201,11 +1200,6 @@ Transaction.prototype.verify = function (notVerifyInput) { } } - // Size limits - if (this.toBuffer().length > MAX_BLOCK_SIZE) { - return 'transaction over the maximum block size' - } - // Check for duplicate inputs var txinmap = {} for (i = 0; i < this.inputs.length; i++) {