Skip to content

Commit 8c3d3b4

Browse files
committed
Fix segwit / taproot deserialization bug
1 parent 511d703 commit 8c3d3b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wire/msgtx.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ const (
8181
// item: 1 byte for length + 1 byte for the witness item itself, or two
8282
// bytes. This value is then divided by the currently allowed maximum
8383
// "cost" for a transaction.
84-
maxWitnessItemsPerInput = 500000
84+
maxWitnessItemsPerInput = 4000000
8585

8686
// maxWitnessItemSize is the maximum allowed size for an item within
8787
// an input's witness data. This number is derived from the fact that
8888
// for script validation, each pushed item onto the stack must be less
8989
// than 10k bytes.
90-
maxWitnessItemSize = 11000
90+
maxWitnessItemSize = 4000000
9191
)
9292

9393
// scriptFreeList defines a free list of byte slices (up to the maximum number

0 commit comments

Comments
 (0)