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 Paronyan
2020-05-16 12:59:34 +02:00
committed by GitHub
parent d7463d348f
commit cdb7808a0e
5 changed files with 31 additions and 29 deletions
@@ -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.