File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,13 @@ const (
96
96
97
97
// maxWitnessItemsPerInput is the maximum number of witness items to
98
98
// be read for the witness data for a single TxIn. This number is
99
- // derived using a possble lower bound for the encoding of a witness
99
+ // derived using a possible lower bound for the encoding of a witness
100
100
// item: 1 byte for length + 1 byte for the witness item itself, or two
101
101
// bytes. This value is then divided by the currently allowed maximum
102
- // "cost" for a transaction.
103
- maxWitnessItemsPerInput = 500000
102
+ // "cost" for a transaction. We use this for an upper bound for the
103
+ // buffer and consensus makes sure that the weight of a transaction
104
+ // cannot be more than 4000000.
105
+ maxWitnessItemsPerInput = 4_000_000
104
106
105
107
// maxWitnessItemSize is the maximum allowed size for an item within
106
108
// an input's witness data. This value is bounded by the largest
You can’t perform that action at this time.
0 commit comments