ManagedState returns a new managed state with the statedb as it's backing layer
(statedb *StateDB)
| 38 | |
| 39 | // ManagedState returns a new managed state with the statedb as it's backing layer |
| 40 | func ManageState(statedb *StateDB) *ManagedState { |
| 41 | return &ManagedState{ |
| 42 | StateDB: statedb.Copy(), |
| 43 | accounts: make(map[common.Address]*account), |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | // SetState sets the backing layer of the managed state |
| 48 | func (ms *ManagedState) SetState(statedb *StateDB) { |