StatePrivAt returns a new mutable private state based on a particular point in time.
(root common.Hash)
| 531 | |
| 532 | // StatePrivAt returns a new mutable private state based on a particular point in time. |
| 533 | func (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. |
| 538 | func (bc *BlockChain) Reset() error { |
no test coverage detected