State returns a new mutable state(public) based on the current HEAD block.
()
| 516 | |
| 517 | // State returns a new mutable state(public) based on the current HEAD block. |
| 518 | func (bc *BlockChain) State() (*state.StateDB, error) { |
| 519 | return bc.StateAt(bc.CurrentBlock().StateRoot()) |
| 520 | } |
| 521 | |
| 522 | // StatePriv returns a new mutable private state based on the current HEAD block. |
| 523 | func (bc *BlockChain) StatePriv() (*state.StateDB, error) { |