This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
enable disputes #3478
Merged
Merged
enable disputes #3478
Changes from 7 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
478a97b
initial integration and migration code
ordian 777fe82
fix tests
ordian 8359bb6
fix counting test
ordian 897937b
assume the current version on missing file
ordian e95bc30
use SelectRelayChain
ordian 3f8c664
remove duplicate metric
ordian b7bc78d
Update node/service/src/lib.rs
ordian c3d51b8
remove ApprovalCheckingVotingRule
ordian 74f0319
Merge branch 'master' into ao-enable-disputes
ordian 4aebe3e
address my concern
ordian 4c7e011
never mode for StagnantCheckInterval
rphmeier e210505
REVERTME: some logs
ordian d626516
w00t
ordian e42346b
Merge branch 'master' into ao-enable-disputes
ordian a278e9d
it's ugly but it works
ordian 116b885
Revert "REVERTME: some logs"
ordian 4a89c36
it's handle, not handler
ordian b1a0027
fix a few typos
ordian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,7 +77,7 @@ where | |
| pub struct AllSubsystems< | ||
| CV = (), CB = (), SD = (), AD = (), AR = (), BS = (), BD = (), P = (), | ||
| RA = (), AS = (), NB = (), CA = (), CG = (), CP = (), ApD = (), ApV = (), | ||
| GS = (), | ||
| GS = (), DC = (), DP = (), DD = (), CS = (), | ||
| > { | ||
| /// A candidate validation subsystem. | ||
| pub candidate_validation: CV, | ||
|
|
@@ -113,10 +113,18 @@ pub struct AllSubsystems< | |
| pub approval_voting: ApV, | ||
| /// A Connection Request Issuer subsystem. | ||
| pub gossip_support: GS, | ||
| /// A Dispute Coordinator subsystem. | ||
| pub dispute_coordinator: DC, | ||
| /// A Dispute Participation subsystem. | ||
| pub dispute_participation: DP, | ||
| /// A Dispute Distribution subsystem. | ||
| pub dispute_distribution: DD, | ||
| /// A Chain Selection subsystem. | ||
| pub chain_selection: CS, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this automatically generate communication handling for the subsystems?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a barely used abstraction for |
||
| } | ||
|
|
||
| impl<CV, CB, SD, AD, AR, BS, BD, P, RA, AS, NB, CA, CG, CP, ApD, ApV, GS> | ||
| AllSubsystems<CV, CB, SD, AD, AR, BS, BD, P, RA, AS, NB, CA, CG, CP, ApD, ApV, GS> | ||
| impl<CV, CB, SD, AD, AR, BS, BD, P, RA, AS, NB, CA, CG, CP, ApD, ApV, GS, DC, DP, DD, CS> | ||
| AllSubsystems<CV, CB, SD, AD, AR, BS, BD, P, RA, AS, NB, CA, CG, CP, ApD, ApV, GS, DC, DP, DD, CS> | ||
| { | ||
| /// Create a new instance of [`AllSubsystems`]. | ||
| /// | ||
|
|
@@ -148,6 +156,10 @@ impl<CV, CB, SD, AD, AR, BS, BD, P, RA, AS, NB, CA, CG, CP, ApD, ApV, GS> | |
| DummySubsystem, | ||
| DummySubsystem, | ||
| DummySubsystem, | ||
| DummySubsystem, | ||
| DummySubsystem, | ||
| DummySubsystem, | ||
| DummySubsystem, | ||
| > { | ||
| AllSubsystems { | ||
| candidate_validation: DummySubsystem, | ||
|
|
@@ -167,11 +179,15 @@ impl<CV, CB, SD, AD, AR, BS, BD, P, RA, AS, NB, CA, CG, CP, ApD, ApV, GS> | |
| approval_distribution: DummySubsystem, | ||
| approval_voting: DummySubsystem, | ||
| gossip_support: DummySubsystem, | ||
| dispute_coordinator: DummySubsystem, | ||
| dispute_participation: DummySubsystem, | ||
| dispute_distribution: DummySubsystem, | ||
| chain_selection: DummySubsystem, | ||
| } | ||
| } | ||
|
|
||
| /// Reference every individual subsystem. | ||
| pub fn as_ref(&self) -> AllSubsystems<&'_ CV, &'_ CB, &'_ SD, &'_ AD, &'_ AR, &'_ BS, &'_ BD, &'_ P, &'_ RA, &'_ AS, &'_ NB, &'_ CA, &'_ CG, &'_ CP, &'_ ApD, &'_ ApV, &'_ GS> { | ||
| pub fn as_ref(&self) -> AllSubsystems<&'_ CV, &'_ CB, &'_ SD, &'_ AD, &'_ AR, &'_ BS, &'_ BD, &'_ P, &'_ RA, &'_ AS, &'_ NB, &'_ CA, &'_ CG, &'_ CP, &'_ ApD, &'_ ApV, &'_ GS, &'_ DC, &'_ DP, &'_ DD, &'_ CS> { | ||
| AllSubsystems { | ||
| candidate_validation: &self.candidate_validation, | ||
| candidate_backing: &self.candidate_backing, | ||
|
|
@@ -190,6 +206,10 @@ impl<CV, CB, SD, AD, AR, BS, BD, P, RA, AS, NB, CA, CG, CP, ApD, ApV, GS> | |
| approval_distribution: &self.approval_distribution, | ||
| approval_voting: &self.approval_voting, | ||
| gossip_support: &self.gossip_support, | ||
| dispute_coordinator: &self.dispute_coordinator, | ||
| dispute_participation: &self.dispute_participation, | ||
| dispute_distribution: &self.dispute_distribution, | ||
| chain_selection: &self.chain_selection, | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -213,6 +233,10 @@ impl<CV, CB, SD, AD, AR, BS, BD, P, RA, AS, NB, CA, CG, CP, ApD, ApV, GS> | |
| <Mapper as MapSubsystem<ApD>>::Output, | ||
| <Mapper as MapSubsystem<ApV>>::Output, | ||
| <Mapper as MapSubsystem<GS>>::Output, | ||
| <Mapper as MapSubsystem<DC>>::Output, | ||
| <Mapper as MapSubsystem<DP>>::Output, | ||
| <Mapper as MapSubsystem<DD>>::Output, | ||
| <Mapper as MapSubsystem<CS>>::Output, | ||
| > | ||
| where | ||
| Mapper: MapSubsystem<CV>, | ||
|
|
@@ -232,6 +256,10 @@ impl<CV, CB, SD, AD, AR, BS, BD, P, RA, AS, NB, CA, CG, CP, ApD, ApV, GS> | |
| Mapper: MapSubsystem<ApD>, | ||
| Mapper: MapSubsystem<ApV>, | ||
| Mapper: MapSubsystem<GS>, | ||
| Mapper: MapSubsystem<DC>, | ||
| Mapper: MapSubsystem<DP>, | ||
| Mapper: MapSubsystem<DD>, | ||
| Mapper: MapSubsystem<CS>, | ||
| { | ||
| AllSubsystems { | ||
| candidate_validation: <Mapper as MapSubsystem<CV>>::map_subsystem(&mapper, self.candidate_validation), | ||
|
|
@@ -251,6 +279,10 @@ impl<CV, CB, SD, AD, AR, BS, BD, P, RA, AS, NB, CA, CG, CP, ApD, ApV, GS> | |
| approval_distribution: <Mapper as MapSubsystem<ApD>>::map_subsystem(&mapper, self.approval_distribution), | ||
| approval_voting: <Mapper as MapSubsystem<ApV>>::map_subsystem(&mapper, self.approval_voting), | ||
| gossip_support: <Mapper as MapSubsystem<GS>>::map_subsystem(&mapper, self.gossip_support), | ||
| dispute_coordinator: <Mapper as MapSubsystem<DC>>::map_subsystem(&mapper, self.dispute_coordinator), | ||
| dispute_participation: <Mapper as MapSubsystem<DP>>::map_subsystem(&mapper, self.dispute_participation), | ||
| dispute_distribution: <Mapper as MapSubsystem<DD>>::map_subsystem(&mapper, self.dispute_distribution), | ||
| chain_selection: <Mapper as MapSubsystem<CS>>::map_subsystem(&mapper, self.chain_selection), | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rphmeier : Removing the
wiphooks up all the channels as expected. I'll write some proper documentation once #3454 is complete.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woah, I like this "wip" thing.