Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
b9ed6d9
skeleton for dispute-coordinator
rphmeier May 28, 2021
e0cf708
add coordinator and participation message types
rphmeier May 29, 2021
2301bf7
begin dispute-coordinator DB
rphmeier May 31, 2021
d81155a
functions for loading
rphmeier May 31, 2021
707fe90
implement strongly-typed DB transaction
rphmeier May 31, 2021
a26f138
add some tests for DB transaction
rphmeier Jun 1, 2021
4304d70
core logic for pruning
rphmeier Jun 1, 2021
535234d
guide: update candidate-votes key for coordinator
rphmeier Jun 1, 2021
34e3c09
update candidate-votes key
rphmeier Jun 1, 2021
aa9b06c
use big-endian encoding for session, and implement upper bound generator
rphmeier Jun 1, 2021
9931719
finish implementing pruning
rphmeier Jun 1, 2021
bc8f31d
add a test for note_current_session
rphmeier Jun 1, 2021
da98ac1
define state of the subsystem itself
rphmeier Jun 1, 2021
bb5e26e
barebones subsystem definition
rphmeier Jun 2, 2021
2f926cf
control flow
rphmeier Jun 2, 2021
f7ec29c
more control flow
rphmeier Jun 2, 2021
5c371cc
implement session-updating logic
rphmeier Jun 2, 2021
71483a0
trace
rphmeier Jun 2, 2021
15783d1
control flow for message handling
rphmeier Jun 2, 2021
b1e6ad3
Update node/core/dispute-coordinator/src/lib.rs
rphmeier Jun 2, 2021
493430d
Update node/subsystem/src/messages.rs
rphmeier Jun 2, 2021
465db42
some more control flow
rphmeier Jun 2, 2021
5883f85
guide: remove overlay
rphmeier Jun 2, 2021
af3de52
more control flow
rphmeier Jun 2, 2021
b677355
implement some DB getters
rphmeier Jun 2, 2021
0ec4727
make progress on importing statements
rphmeier Jun 2, 2021
8985791
add SignedDisputeStatement struct
rphmeier Jun 7, 2021
468d637
move ApprovalVote to shared primitives
rphmeier May 5, 2021
87e72c0
add a signing-payload API to explicit dispute statements
rphmeier May 5, 2021
3ac313b
add signing-payload to CompactStatement
rphmeier Jun 7, 2021
6075b03
add relay-parent hash to seconded/valid dispute variatns
rphmeier Jun 7, 2021
5586152
correct import
rphmeier Jun 7, 2021
a10948c
type-safe wrapper around dispute statements
rphmeier Jun 7, 2021
d6dabb2
use checked dispute statement in message type
rphmeier Jun 7, 2021
488f670
extract rolling session window cache to subsystem-util
rphmeier Jun 8, 2021
b71e836
extract session window tests
rphmeier Jun 8, 2021
d09c19b
approval-voting: use rolling session info cache
rphmeier Jun 8, 2021
47881c9
reduce dispute window to match runtime in practice
rphmeier Jun 10, 2021
4c30f05
add byzantine_threshold and supermajority_threshold utilities to prim…
rphmeier Jun 10, 2021
f9875be
integrate rolling session window
rphmeier Jun 10, 2021
79d2c09
Add PartialOrd to CandidateHash
rphmeier Jun 10, 2021
605f665
add Ord to CandidateHash
rphmeier Jun 10, 2021
9b0823a
implement active dispute update
rphmeier Jun 10, 2021
75903c6
add dispute messages to AllMessages
rphmeier Jun 10, 2021
88f52ad
add dispute stubs to overseer
rphmeier Jun 10, 2021
ecaee5f
inform dispute participation to participate
rphmeier Jun 10, 2021
b5cf2f5
implement issue_local_statement
rphmeier Jun 10, 2021
8bce446
implement `determine_undisputed_chain`
rphmeier Jun 10, 2021
b9d727c
fix warnings
rphmeier Jun 10, 2021
44e20cc
test harness for dispute coordinator tests
rphmeier Jun 10, 2021
388692e
add more helpers to test harness
rphmeier Jun 11, 2021
0d4a3a9
add some more helpers
rphmeier Jun 11, 2021
7adc79d
some tests for dispute coordinator
rphmeier Jun 11, 2021
e957ee2
ignore wrong validator indices
rphmeier Jun 11, 2021
f2b1f00
test finality voting rule constraint
rphmeier Jun 11, 2021
571a00c
add more tests
rphmeier Jun 11, 2021
42e5951
add variants to network bridge
rphmeier Jun 11, 2021
ebe7a08
Merge branch 'master' into rh-dispute-coordinator
rphmeier Jun 11, 2021
eac3bb4
fix test compilation
rphmeier Jun 12, 2021
9cd615e
remove most dispute coordinator functionality
rphmeier Jun 12, 2021
9dea8ee
Merge branch 'master' into rh-dispute-coordinator
rphmeier Jun 12, 2021
4042c5a
Revert "remove most dispute coordinator functionality"
rphmeier Jun 12, 2021
f0d3179
Use thiserror
rphmeier Jun 12, 2021
8c3af58
Update node/core/dispute-coordinator/src/lib.rs
rphmeier Jun 13, 2021
9647f65
extract tests to separate module
rphmeier Jun 13, 2021
6a3ea3f
address nit
rphmeier Jun 13, 2021
ad8f990
adjust run_iteration API
rphmeier Jun 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ members = [
"node/core/bitfield-signing",
"node/core/candidate-validation",
"node/core/chain-api",
"node/core/dispute-coordinator",
"node/core/parachains-inherent",
"node/core/provisioner",
"node/core/pvf",
Expand Down
2 changes: 1 addition & 1 deletion core-primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub type Hash = sp_core::H256;
/// This type is produced by [`CandidateReceipt::hash`].
///
/// This type makes it easy to enforce that a hash is a candidate hash on the type level.
#[derive(Clone, Copy, Encode, Decode, Hash, Eq, PartialEq, Default)]
#[derive(Clone, Copy, Encode, Decode, Hash, Eq, PartialEq, Default, PartialOrd, Ord)]
#[cfg_attr(feature = "std", derive(MallocSizeOf))]
pub struct CandidateHash(pub Hash);

Expand Down
Loading