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

Method StatePrivAt

core/blockchain.go:533–535  ·  view source on GitHub ↗

StatePrivAt returns a new mutable private state based on a particular point in time.

(root common.Hash)

Source from the content-addressed store, hash-verified

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) {
534 return state.New(GetPrivateStateRoot(bc.db, root), bc.privateStateCache)
535}
536
537// Reset purges the entire blockchain, restoring it to its genesis state.
538func (bc *BlockChain) Reset() error {

Callers 4

StatePrivMethod · 0.95
makeCurrentWorkMethod · 0.80
computeStatePrivDBMethod · 0.80

Calls 1

GetPrivateStateRootFunction · 0.85

Tested by

no test coverage detected