Skip to content

Commit

Permalink
Merge pull request #268 from sCrypt-Inc/up_bsv
Browse files Browse the repository at this point in the history
Up bsv
  • Loading branch information
zhfnjust authored Apr 26, 2024
2 parents 7326600 + 8293be8 commit 5ff3c0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 0 additions & 6 deletions patches/bsv/lib/transaction/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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++) {
Expand Down

0 comments on commit 5ff3c0d

Please sign in to comment.