change(network): Broadcast block submissions to all peers in the peer set - #9907
Conversation
|
Nice, this is part of #9721 |
|
We might want to test this by removing: |
… to peers when submitted in quick succession
…AdvertiseBlockToAll` requests to unready peers once they become ready, and updates block hash gossip task to avoid advertising block submissions to some peers twice.
…ers that were unready at the time of the last call to `broadcast_all()`
f2d8ded to
7dc3178
Compare
…rs()` method and calls it again after calling `broadcast_all_queued()` if `ready_services` is empty.
I replaced that with a single call to We could make |
|
@gustavovalverde any idea why the deploy nodes job is being skipped? |
@arya2 We recently decided to move it to the |
Motivation
It would be nice to broadcast accepted block submissions to all ready peers.
Solution
AdvertiseBlockToAllvariant to the zebra-networkRequesttyperoute_multiple()broadcast_all()method which sends a request to every ready peergossip_best_tip_block_hashes()task to call the peer set with aAdvertiseBlockToAllrequest instead ofAdvertiseBlockif the block hash/height being advertised were received from the mined block channel.Related changes:
AdvertiseBlock(it routes to a third of ready peers, not half)submitblockRPC when the mined block channel is closedPR Checklist