Remove on_block_imported (#6039)

* remove on_block_imported

* Update client/network/src/service.rs

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
Arkadiy ParonyanandPierre Krieger authored and GitHub committed 2020-05-16 12:59:34 +02:00
1 parent d7463d348f
commit cdb7808a0e
5 files changed
+31 -29

No files matched your search

@@ -513,10 +513,10 @@ impl<B: BlockT> ChainSync<B> {
}
}
/// Signal that `best_header` has been queued for import and update the
/// Signal that a new best block has been imported.
/// `ChainSync` state with that information.
pub fn update_chain_info(&mut self, best_header: &B::Header) {
self.on_block_queued(&best_header.hash(), *best_header.number())
pub fn update_chain_info(&mut self, best_hash: &B::Hash, best_number: NumberFor<B>) {
self.on_block_queued(best_hash, best_number);
}
/// Schedule a justification request for the given block.