mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-28 14:39:49 +00:00
* remove on_block_imported * remove on_block_imported Co-authored-by: Gav Wood <gavin@parity.io>
This commit is contained in:
1 parent
8cb7cdbc64
commit
a6f35ee989
2 files changed
+259
-262
No files matched your search
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