mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
* remove on_block_imported * remove on_block_imported Co-authored-by: Gav Wood <gavin@parity.io>
This commit is contained in:
Generated
+257
-257
File diff suppressed because it is too large
Load Diff
@@ -258,10 +258,10 @@ impl<D> Peer<D> {
|
||||
Default::default()
|
||||
};
|
||||
self.block_import.import_block(import_block, cache).expect("block_import failed");
|
||||
self.network.on_block_imported(header, true);
|
||||
at = hash;
|
||||
}
|
||||
|
||||
self.network.update_chain();
|
||||
self.network.service().announce_block(at.clone(), Vec::new());
|
||||
at
|
||||
}
|
||||
@@ -770,10 +770,7 @@ pub trait TestNetFactory: Sized {
|
||||
|
||||
// We poll `imported_blocks_stream`.
|
||||
while let Poll::Ready(Some(notification)) = peer.imported_blocks_stream.as_mut().poll_next(cx) {
|
||||
peer.network.on_block_imported(
|
||||
notification.header,
|
||||
true,
|
||||
);
|
||||
peer.network.service().announce_block(notification.hash, Vec::new());
|
||||
}
|
||||
|
||||
// We poll `finality_notification_stream`, but we only take the last event.
|
||||
|
||||
Reference in New Issue
Block a user