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.
|
estack *Stack // execution stack.
|
||||||
astack *Stack // alt stack.
|
astack *Stack // alt stack.
|
||||||
|
|
||||||
// Hash to verify in CHECKSIG/CHECKMULTISIG.
|
|
||||||
checkhash []byte
|
|
||||||
|
|
||||||
refs *refCounter
|
refs *refCounter
|
||||||
|
|
||||||
gasConsumed int64
|
gasConsumed int64
|
||||||
|
@ -493,12 +490,6 @@ func (v *VM) AtBreakpoint() bool {
|
||||||
return v.state.HasFlag(breakState)
|
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.
|
// GetInteropID converts instruction parameter to an interop ID.
|
||||||
func GetInteropID(parameter []byte) uint32 {
|
func GetInteropID(parameter []byte) uint32 {
|
||||||
return binary.LittleEndian.Uint32(parameter)
|
return binary.LittleEndian.Uint32(parameter)
|
||||||
|
|
Loading…
Add table
Reference in a new issue