Files
pezkuwi-subxt/substrate/client/service
Bastian Köcher 450b96c50d Sync: Propagate block announcement data (#7903)
* Sync: Propagate block announcement data

This pr adds a feature to the sync protocol to propagate the data that
we received alongside a block announcement. This is done by adding a
cache that caches the last X block announcement data where X is set to
the number of `in_peers` (giving every peer the chance to send us a
different block). This will be required by parachains to ensure that
even peers who are not connected to a collator receive the data
alongside the block announcement to properly validate it and request the
block.

* Review comment

* Bring back the code and add new variant to ensure we don't insert block
announce data when something wasn't checked

* Also use out_peers
2021-01-19 17:01:11 +01:00
..
2021-01-14 18:55:41 +00:00
2021-01-12 09:25:47 +01:00
2020-08-20 17:04:42 +02:00

Substrate service. Starts a thread that spins up the network, client, and extrinsic pool. Manages communication between them.

License: GPL-3.0-or-later WITH Classpath-exception-2.0