vm: drop checkedhash, it's an unused NeoVM 2 remnant

This commit is contained in:
Roman Khimov 2020-07-09 15:05:14 +03:00
parent 1bb26dcdc1
commit 15c6cc932d

View file

@ -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)