From 15c6cc932dd9c2f63b66354a0c26a214f3760be0 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 9 Jul 2020 15:05:14 +0300 Subject: [PATCH] vm: drop checkedhash, it's an unused NeoVM 2 remnant --- pkg/vm/vm.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkg/vm/vm.go b/pkg/vm/vm.go index 6fd32508a..2105e58e9 100644 --- a/pkg/vm/vm.go +++ b/pkg/vm/vm.go @@ -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)