Refactored VM to two separate VMs; std & debug
Standard VM should be about 10x faster than the debug VM. Some error checking has been removed, all of the log statements and therefor quite some unnecessary if-statements.
This commit is contained in:
10
ethvm/debugger.go
Normal file
10
ethvm/debugger.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package ethvm
|
||||
|
||||
import "github.com/ethereum/eth-go/ethstate"
|
||||
|
||||
type Debugger interface {
|
||||
BreakHook(step int, op OpCode, mem *Memory, stack *Stack, object *ethstate.StateObject) bool
|
||||
StepHook(step int, op OpCode, mem *Memory, stack *Stack, object *ethstate.StateObject) bool
|
||||
BreakPoints() []int64
|
||||
SetCode(byteCode []byte)
|
||||
}
|
||||
Reference in New Issue
Block a user