Skip to content

Commit 5ff3c0d

Browse files
authored
Merge pull request #268 from sCrypt-Inc/up_bsv
Up bsv
2 parents 7326600 + 8293be8 commit 5ff3c0d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## 2.1.42
4+
5+
update bsv lib
6+
- fix transaction over the maximum block size
7+
- `signTx` add `hashCache` parameter
8+
39
## 2.1.37
410

511
- update bsv lib

patches/bsv/lib/transaction/transaction.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ function Transaction (serialized) {
6262

6363
var CURRENT_VERSION = 1
6464
var DEFAULT_NLOCKTIME = 0
65-
var MAX_BLOCK_SIZE = 1000000
6665

6766
// Minimum amount for an output for it not to be considered a dust output
6867
Transaction.DUST_AMOUNT = 1
@@ -1201,11 +1200,6 @@ Transaction.prototype.verify = function (notVerifyInput) {
12011200
}
12021201
}
12031202

1204-
// Size limits
1205-
if (this.toBuffer().length > MAX_BLOCK_SIZE) {
1206-
return 'transaction over the maximum block size'
1207-
}
1208-
12091203
// Check for duplicate inputs
12101204
var txinmap = {}
12111205
for (i = 0; i < this.inputs.length; i++) {

0 commit comments

Comments
 (0)