MCPcopy Create free account
hub / github.com/CPChain/chain / ManageState

Function ManageState

core/state/managed_state.go:40–45  ·  view source on GitHub ↗

ManagedState returns a new managed state with the statedb as it's backing layer

(statedb *StateDB)

Source from the content-addressed store, hash-verified

38
39// ManagedState returns a new managed state with the statedb as it's backing layer
40func 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
48func (ms *ManagedState) SetState(statedb *StateDB) {

Callers 1

createFunction · 0.85

Calls 1

CopyMethod · 0.45

Tested by 1

createFunction · 0.68