txscript: Remove unused unparseScript func.
Also remove tests associated with unparsing opcodes accordingly.
This commit is contained in:
parent
e06b11a999
commit
491b7b59fc
2 changed files with 0 additions and 3665 deletions
|
@ -202,20 +202,6 @@ func checkScriptTemplateParseable(script []byte, opcodes *[256]opcode) (*byte, e
|
||||||
return &firstOpcode, nil
|
return &firstOpcode, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// unparseScript reversed the action of parseScript and returns the
|
|
||||||
// parsedOpcodes as a list of bytes
|
|
||||||
func unparseScript(pops []parsedOpcode) ([]byte, error) {
|
|
||||||
script := make([]byte, 0, len(pops))
|
|
||||||
for _, pop := range pops {
|
|
||||||
b, err := pop.bytes()
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
script = append(script, b...)
|
|
||||||
}
|
|
||||||
return script, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DisasmString formats a disassembled script for one line printing. When the
|
// DisasmString formats a disassembled script for one line printing. When the
|
||||||
// script fails to parse, the returned string will contain the disassembled
|
// script fails to parse, the returned string will contain the disassembled
|
||||||
// script up to the point the failure occurred along with the string '[error]'
|
// script up to the point the failure occurred along with the string '[error]'
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue