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

Method StateAt

core/blockchain.go:528–530  ·  view source on GitHub ↗

StateAt returns a new mutable state(public) based on a particular point in time.

(root common.Hash)

Source from the content-addressed store, hash-verified

526
527// StateAt returns a new mutable state(public) based on a particular point in time.
528func (bc *BlockChain) StateAt(root common.Hash) (*state.StateDB, error) {
529 return state.New(root, bc.stateCache)
530}
531
532// StatePrivAt returns a new mutable private state based on a particular point in time.
533func (bc *BlockChain) StatePrivAt(root common.Hash) (*state.StateDB, error) {

Callers 1

StateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected