Fixups from review.

Reduce size of default extra-data.
Introduce find_uncle_headers.
This commit is contained in:
Gav Wood
2016-03-01 19:59:12 +01:00
parent f2eae8bc50
commit 140711dd8a
5 changed files with 18 additions and 9 deletions

View File

@@ -473,6 +473,12 @@ impl BlockChain {
self.extras_db.write(batch).unwrap();
}
/// Given a block's `parent`, find every block header which represents a valid uncle.
pub fn find_uncle_headers(&self, _parent: &H256) -> Vec<Header> {
// TODO
Vec::new()
}
/// Get inserted block info which is critical to preapre extras updates.
fn block_info(&self, block_bytes: &[u8]) -> BlockInfo {
let block = BlockView::new(block_bytes);