mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
There'll be jumping in to jumps
This commit is contained in:
parent
1b1fa049fa
commit
99d5769c2b
@ -83,6 +83,8 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) {
|
|||||||
nop := OpCode(closure.GetOp(p))
|
nop := OpCode(closure.GetOp(p))
|
||||||
if !(nop == JUMPDEST || destinations[from.Int64()] != nil) {
|
if !(nop == JUMPDEST || destinations[from.Int64()] != nil) {
|
||||||
panic(fmt.Sprintf("JUMP missed JUMPDEST (%v) %v", nop, p))
|
panic(fmt.Sprintf("JUMP missed JUMPDEST (%v) %v", nop, p))
|
||||||
|
} else if nop == JUMP || nop == JUMPI {
|
||||||
|
panic(fmt.Sprintf("not allowed to JUMP(I) in to JUMP"))
|
||||||
}
|
}
|
||||||
|
|
||||||
pc = to
|
pc = to
|
||||||
|
Loading…
Reference in New Issue
Block a user