sc_network_test: Announce only the highest block (#4111)

Closes: https://github.com/paritytech/polkadot-sdk/issues/4100
This commit is contained in:
Bastian Köcher
2024-04-13 10:40:10 +02:00
committed by GitHub
parent 8220c98008
commit 7c698502d1
+4 -3
View File
@@ -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,