From c12447c7c5ae886389782929b915f83c6bda19d7 Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Tue, 4 Sep 2018 17:25:22 +0800 Subject: [PATCH] Fix docs of address_hash (#9463) --- ethcore/src/state/account.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethcore/src/state/account.rs b/ethcore/src/state/account.rs index eec713a4e..e08e23658 100644 --- a/ethcore/src/state/account.rs +++ b/ethcore/src/state/account.rs @@ -235,7 +235,8 @@ impl Account { self.code_hash.clone() } - /// return the code hash associated with this account. + /// return and cache `keccak(address)`, `address` must be the address of this + /// account. pub fn address_hash(&self, address: &Address) -> H256 { let hash = self.address_hash.get(); hash.unwrap_or_else(|| {