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

Method StatePriv

core/blockchain.go:523–525  ·  view source on GitHub ↗

StatePriv returns a new mutable private state based on the current HEAD block.

()

Source from the content-addressed store, hash-verified

521
522// StatePriv returns a new mutable private state based on the current HEAD block.
523func (bc *BlockChain) StatePriv() (*state.StateDB, error) {
524 return bc.StatePrivAt(bc.CurrentBlock().StateRoot())
525}
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) {

Callers

nothing calls this directly

Calls 3

StatePrivAtMethod · 0.95
CurrentBlockMethod · 0.95
StateRootMethod · 0.80

Tested by

no test coverage detected