mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-22 22:36:34 +01:00
core: Optimize ScriptParser.parseOperationByte() (#5899)
This commit is contained in:
parent
bf3fc65db3
commit
73cf14d03e
1 changed files with 3 additions and 1 deletions
|
@ -230,7 +230,9 @@ sealed abstract class ScriptParser
|
|||
// means that we need to push x amount of bytes on to the stack
|
||||
val (constant, newTail) = sliceConstant(bytesToPushOntoStack, tail)
|
||||
val scriptConstant = ScriptConstant(constant)
|
||||
ParsingHelper(newTail, scriptConstant +: bytesToPushOntoStack +: accum)
|
||||
ParsingHelper(
|
||||
newTail,
|
||||
accum.prependedAll(Vector(scriptConstant, bytesToPushOntoStack)))
|
||||
case OP_PUSHDATA1 => parseOpPushData(op, accum, tail)
|
||||
case OP_PUSHDATA2 => parseOpPushData(op, accum, tail)
|
||||
case OP_PUSHDATA4 => parseOpPushData(op, accum, tail)
|
||||
|
|
Loading…
Add table
Reference in a new issue