mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user