This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Commit 219f0a4
Disputes runtime (#2947)
* disputes module skeleton and storage
* implement dispute module initialization logic
* implement disputes session change logic
* provide dispute skeletons
* deduplication & ancient check
* fix a couple of warnings
* begin provide_dispute_data impl
* flesh out statement set import somewhat
* move ApprovalVote to shared primitives
* add a signing-payload API to explicit dispute statements
* implement statement signature checking
* some bitflags glue for observing changes in disputes
* implement dispute vote import logic
* flesh out everything except slashing
* guide: tweaks
* declare and use punishment trait
* punish validators for inconclusive disputes
* guide: tiny fix
* guide: update docs
* add disputes getter fn
* guide: small change to spam slots handling
* improve spam slots handling and fix some bugs
* finish API of disputes runtime
* define and deposit `RevertTo` log
* begin integrating disputes into para_inherent
* use precomputed slash_for/against
* return candidate hash from process_bitfields
* implement inclusion::collect_disputed
* finish integration into rest of runtime
* add Disputes to initializer
* address suggestions
* use pallet macro
* fix typo
* Update runtime/parachains/src/disputes.rs
* add test: fix pruning
* document specific behavior
* deposit events on dispute changes
* add an allow(unused) on fn disputes
* add a dummy PunishValidators implementation
* add disputes module to Rococo
* add disputes module to westend runtime
* add disputes module to test runtime
* add disputes module to kusama runtime
* guide: prepare for runtime API for checking frozenness
* remove revert digests in favor of state variable
* merge reversions
* Update runtime/parachains/src/disputes.rs
Co-authored-by: André Silva <[email protected]>
* Update runtime/parachains/src/disputes.rs
Co-authored-by: André Silva <[email protected]>
* Update runtime/parachains/src/disputes.rs
Co-authored-by: André Silva <[email protected]>
* add byzantine_threshold and supermajority_threshold utilities to primitives
* use primitive helpers
* deposit revert event when freezing chain
* deposit revert log when freezing chain
* test revert event and log are generated when freezing
* add trait to decouple disputes handling from paras inherent handling
* runtime: fix compilation and setup dispute handler
* disputes: add hook for filtering out dispute statements
* disputes: add initializer hooks to DisputesHandler
* runtime: remove disputes pallet from all runtimes
* tag TODOs
* don't import any dispute statements just yet...
* address grumbles
* fix spellcheck, hopefully
* maybe now?
* last spellcheck round
* fix runtime tests
* fix test-runtime
Co-authored-by: thiolliere <[email protected]>
Co-authored-by: André Silva <[email protected]>
Co-authored-by: André Silva <[email protected]>1 parent 7f79897 commit 219f0a4
File tree
15 files changed
+2291
-42
lines changed- primitives/src/v1
- roadmap/implementers-guide/src
- runtime
- types
- runtime
- kusama/src
- parachains
- src
- rococo/src
- test-runtime/src
- westend/src
15 files changed
+2291
-42
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
1189 | | - | |
| 1189 | + | |
1190 | 1190 | | |
1191 | 1191 | | |
1192 | 1192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
| 99 | + | |
99 | 100 | | |
100 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | | - | |
103 | | - | |
| 105 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
| 1095 | + | |
1095 | 1096 | | |
1096 | 1097 | | |
1097 | 1098 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments