mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
vm: drop checkedhash, it's an unused NeoVM 2 remnant
This commit is contained in:
parent
1bb26dcdc1
commit
15c6cc932d
1 changed files with 0 additions and 9 deletions
|
@ -71,9 +71,6 @@ type VM struct {
|
|||
estack *Stack // execution stack.
|
||||
astack *Stack // alt stack.
|
||||
|
||||
// Hash to verify in CHECKSIG/CHECKMULTISIG.
|
||||
checkhash []byte
|
||||
|
||||
refs *refCounter
|
||||
|
||||
gasConsumed int64
|
||||
|
@ -493,12 +490,6 @@ func (v *VM) AtBreakpoint() bool {
|
|||
return v.state.HasFlag(breakState)
|
||||
}
|
||||
|
||||
// SetCheckedHash sets checked hash for CHECKSIG and CHECKMULTISIG instructions.
|
||||
func (v *VM) SetCheckedHash(h []byte) {
|
||||
v.checkhash = make([]byte, len(h))
|
||||
copy(v.checkhash, h)
|
||||
}
|
||||
|
||||
// GetInteropID converts instruction parameter to an interop ID.
|
||||
func GetInteropID(parameter []byte) uint32 {
|
||||
return binary.LittleEndian.Uint32(parameter)
|
||||
|
|
Loading…
Reference in a new issue