mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
Prepare for network protocol version upgrades (#5084)
* explicitly tag network requests with version * fmt * make PeerSet more aware of versioning * some generalization of the network bridge to support upgrades * walk back some renaming * walk back some version stuff * extract version from fallback * remove V1 from NetworkBridgeUpdate * add accidentally-removed timer * implement focusing for versioned messages * fmt * fix up network bridge & tests * remove inaccurate version check in bridge * remove some TODO [now]s * fix fallout in statement distribution * fmt * fallout in gossip-support * fix fallout in collator-protocol * fix fallout in bitfield-distribution * fix fallout in approval-distribution * fmt * use never! * fmt
This commit is contained in:
@@ -14,7 +14,7 @@ Input:
|
||||
Output:
|
||||
|
||||
- `NetworkBridge::SendMessage(PeerId, message)`
|
||||
- `NetworkBridge::SendRequests(StatementFetching)`
|
||||
- `NetworkBridge::SendRequests(StatementFetchingV1)`
|
||||
- `NetworkBridge::ReportPeer(PeerId, cost_or_benefit)`
|
||||
|
||||
## Functionality
|
||||
@@ -86,7 +86,7 @@ example. For this reason, there exists a `LargeStatement` constructor for the
|
||||
of a statement. The actual candidate data is not included. This message type is
|
||||
used whenever a message is deemed large. The receiver of such a message needs to
|
||||
request the actual payload via request/response by means of a
|
||||
`StatementFetching` request.
|
||||
`StatementFetchingV1` request.
|
||||
|
||||
This is necessary as distribution of a large payload (mega bytes) via gossip
|
||||
would make the network collapse and timely distribution of statements would no
|
||||
|
||||
Reference in New Issue
Block a user