IntermediateRoot computes the current root hash of the state trie. It is called in between transactions to get the root hash that goes into transaction receipts.
(deleteEmptyObjects bool)
| 560 | // It is called in between transactions to get the root hash that |
| 561 | // goes into transaction receipts. |
| 562 | func (s *StateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash { |
| 563 | s.Finalise(deleteEmptyObjects) |
| 564 | return s.trie.Hash() |
| 565 | } |
| 566 | |
| 567 | // Prepare sets the current transaction hash and index and block hash which is |
| 568 | // used when the EVM emits new state logs. |