diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index 81d6ea9c9..7061ccc71 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -999,7 +999,8 @@ impl Client { /// Otherwise, this can fail (but may not) if the DB prunes state. pub fn state_at_beginning(&self, id: BlockId) -> Option> { match self.block_number(id) { - None | Some(0) => None, + None => None, + Some(0) => self.state_at(id), Some(n) => self.state_at(BlockId::Number(n - 1)), } }