Added new state object change echanism

This commit is contained in:
obscuren
2014-04-26 01:47:55 +02:00
parent f3818478e2
commit 0f93da400a
4 changed files with 69 additions and 44 deletions

View File

@ -30,6 +30,8 @@ type Vm struct {
vars RuntimeVars
state *State
stateManager *StateManager
}
type RuntimeVars struct {
@ -42,8 +44,8 @@ type RuntimeVars struct {
TxData []string
}
func NewVm(state *State, vars RuntimeVars) *Vm {
return &Vm{vars: vars, state: state}
func NewVm(state *State, stateManager *StateManager, vars RuntimeVars) *Vm {
return &Vm{vars: vars, state: state, stateManager: stateManager}
}
var Pow256 = ethutil.BigPow(2, 256)