This commit is contained in:
NikVolf 2016-11-28 16:35:20 +03:00
parent fb881adb66
commit 0320a7c6ed
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ impl Chain {
/// Insert new best block to storage
pub fn insert_best_block(&mut self, hash: H256, block: &IndexedBlock) -> Result<BlockInsertionResult, db::Error> {
let is_appending_to_main_branch = &self.best_storage_block.hash == block.hash();
let is_appending_to_main_branch = self.best_storage_block.hash == block.header().previous_header_hash;
// insert to storage
let storage_insertion = try!(self.storage.insert_indexed_block(&block));