(&mut self)
| 116 | } |
| 117 | |
| 118 | pub(crate) fn root_hash(&mut self) -> Result<H256> { |
| 119 | let root_hash = self |
| 120 | .trie |
| 121 | .root_hash() |
| 122 | .map_err(|e| ChainError::CannotCreateRootHash(format!("account_trie: {}", e)))?; |
| 123 | |
| 124 | Ok(H256::from_slice(root_hash.as_bytes())) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | #[cfg(test)] |
no outgoing calls