Fixed block proagation after import and import notifications (#119)

* Fixed block proagation after import and import notifications

* Removed cargo check
This commit is contained in:
Arkadiy Paronyan
2018-04-11 19:25:41 +02:00
committed by Gav Wood
parent d978425f05
commit 54d6970efc
7 changed files with 41 additions and 19 deletions
+2 -2
View File
@@ -315,7 +315,7 @@ impl<B, E> Client<B, E> where
let is_new_best = header.number == self.backend.blockchain().info()?.best_number + 1;
let hash: block::HeaderHash = header.blake2_256().into();
trace!("Imported {}, (#{}), best={}", hash, header.number, is_new_best);
trace!("Imported {}, (#{}), best={}, origin={:?}", hash, header.number, is_new_best, origin);
transaction.set_block_data(header.clone(), body, Some(justification.uncheck().into()), is_new_best)?;
transaction.set_storage(overlay.drain())?;
self.backend.commit_operation(transaction)?;
@@ -407,7 +407,7 @@ impl<B, E> bft::BlockImport for Client<B, E>
justification,
};
let _ = self.import_block(BlockOrigin::Genesis, justified_header, Some(block.transactions));
let _ = self.import_block(BlockOrigin::ConsensusBroadcast, justified_header, Some(block.transactions));
}
}