StatePriv returns a new mutable private state based on the current HEAD block.
()
| 521 | |
| 522 | // StatePriv returns a new mutable private state based on the current HEAD block. |
| 523 | func (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. |
| 528 | func (bc *BlockChain) StateAt(root common.Hash) (*state.StateDB, error) { |
nothing calls this directly
no test coverage detected