mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 12:41:07 +00:00
sc_network_test: Announce only the highest block (#4111)
Closes: https://github.com/paritytech/polkadot-sdk/issues/4100
This commit is contained in:
@@ -393,13 +393,14 @@ where
|
||||
|
||||
futures::executor::block_on(self.block_import.import_block(import_block))
|
||||
.expect("block_import failed");
|
||||
if announce_block {
|
||||
self.sync_service.announce_block(hash, None);
|
||||
}
|
||||
hashes.push(hash);
|
||||
at = hash;
|
||||
}
|
||||
|
||||
if announce_block {
|
||||
self.sync_service.announce_block(at, None);
|
||||
}
|
||||
|
||||
if inform_sync_about_new_best_block {
|
||||
self.sync_service.new_best_block_imported(
|
||||
at,
|
||||
|
||||
Reference in New Issue
Block a user