keep track of first block in blockchain (#1937)

This commit is contained in:
Robert Habermeier
2016-08-18 22:01:57 +02:00
committed by Arkadiy Paronyan
parent d7c184bd72
commit 0e0cc20d84
2 changed files with 51 additions and 1 deletions

View File

@@ -284,6 +284,10 @@ mod tests {
self.blocks.contains_key(hash)
}
fn first_block(&self) -> H256 {
unimplemented!()
}
/// Get raw block data
fn block(&self, hash: &H256) -> Option<Bytes> {
self.blocks.get(hash).cloned()