#votes #subsystem #validation #node #session #coordinator #dispute

polkadot-node-core-dispute-coordinator

The node-side components that participate in disputes (polkadot v1.10.0)

12 major breaking releases

new 12.0.0 May 1, 2024
11.0.0 Apr 10, 2024
10.0.0 Mar 19, 2024
9.0.0 Feb 27, 2024
0.0.0 Nov 21, 2022

#302 in Magic Beans

Download history 178/week @ 2024-01-09 102/week @ 2024-01-16 184/week @ 2024-01-23 107/week @ 2024-01-30 350/week @ 2024-02-06 328/week @ 2024-02-13 560/week @ 2024-02-20 978/week @ 2024-02-27 396/week @ 2024-03-05 456/week @ 2024-03-12 953/week @ 2024-03-19 769/week @ 2024-03-26 733/week @ 2024-04-02 803/week @ 2024-04-09 468/week @ 2024-04-16 453/week @ 2024-04-23

2,676 downloads per month
Used in 2 crates (via polkadot-service)

GPL-3.0-only

395KB
9K SLoC

Implements the dispute coordinator subsystem.

This is the central subsystem of the node-side components which participate in disputes. This subsystem wraps a database which tracks all statements observed by all validators over some window of sessions. Votes older than this session window are pruned.

This subsystem will be the point which produce dispute votes, either positive or negative, based on locally-observed validation results as well as a sink for votes received by other subsystems. When importing a dispute vote from another node, this will trigger dispute participation to recover and validate the block.

Dependencies

~73–115MB
~2M SLoC