[lbry] blockchain, txscript: change maxScriptElementSize from 520 t0 20,000 bytes
This commit is contained in:
parent
b179b1d52d
commit
53553df4a8
2 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ const (
|
|||
minCoinbaseScriptLen = 2
|
||||
maxCoinbaseScriptLen = 100
|
||||
medianTimeBlocks = 11
|
||||
maxScriptElementSize = 520
|
||||
maxScriptElementSize = 20000
|
||||
|
||||
// numLargeReorgBlocks is the number of blocks to use in the large block
|
||||
// reorg test (when enabled). This is the equivalent of 1 week's worth
|
||||
|
@ -1875,7 +1875,7 @@ func Generate(includeLargeReorg bool) (tests [][]TestInstance, err error) {
|
|||
//
|
||||
// Comment assumptions:
|
||||
// maxBlockSigOps = 20000
|
||||
// maxScriptElementSize = 520
|
||||
// maxScriptElementSize = 20000
|
||||
//
|
||||
// [0-19999] : OP_CHECKSIG
|
||||
// [20000] : OP_PUSHDATA4
|
||||
|
|
|
@ -41,7 +41,7 @@ const (
|
|||
const (
|
||||
MaxOpsPerScript = 201 // Max number of non-push operations.
|
||||
MaxPubKeysPerMultiSig = 20 // Multisig can't have more sigs than this.
|
||||
MaxScriptElementSize = 520 // Max bytes pushable to the stack.
|
||||
MaxScriptElementSize = 20000 // Max bytes pushable to the stack.
|
||||
)
|
||||
|
||||
// isSmallInt returns whether or not the opcode is considered a small integer,
|
||||
|
|
Loading…
Reference in a new issue