Don't announce blocks in sync_to_tip_when_we_sync_together_with_multiple_peers (#12783)

* Fix syncing test

* cargo fmt

* Fix test
This commit is contained in:
Aaro Altonen
2022-11-30 15:37:28 +02:00
committed by GitHub
parent 995e530939
commit ec064e5edf
2 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -428,8 +428,9 @@ where
at: BlockId<Block>,
count: usize,
with_tx: bool,
announce_block: bool,
) -> H256 {
self.generate_tx_blocks_at(at, count, with_tx, false, false, true)
self.generate_tx_blocks_at(at, count, with_tx, false, false, announce_block)
}
/// Push blocks to the peer (simplified: with or without a TX) starting from