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.6k
dispute-coordinator: past session dispute slashing #6811
Merged
Merged
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
8dbeae7
runtime/vstaging: unapplied_slashes runtime API
d3273d7
runtime/vstaging: key_ownership_proof runtime API
8394592
runtime/ParachainHost: submit_report_dispute_lost
d31edbb
fix key_ownership_proof API
5808d0b
runtime: submit_report_dispute_lost runtime API
78d9da0
nits
7caf651
Update node/subsystem-types/src/messages.rs
ab08d67
merge master and resolve ExecutorParams conflicts
62e3831
revert unrelated fmt changes
5223ef3
dispute-coordinator: past session dispute slashing
af6921d
encapsule runtime api call for submitting report
9d4e21f
prettify: extract into a function
39def6a
do not exit on runtime api error
1495b47
fix tests
5046c2d
Merge branch 'master' into ao-past-session-slashing-client
f2119e4
Merge branch 'master' into ao-past-session-slashing-runtime
a062b6c
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
eca1786
try initial zombienet test
13b6271
try something
77ec15a
fix a typo
49cb564
try cumulus-based collator
288696e
fix clippy
36d60d9
build polkadot-debug images with fast-runtime enabled
35d76d3
merge master, resolve conflicts, bump to v5
b3b094c
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
1494ff9
wip
aafc9b0
runtime/inclusion: fix availability_threshold
dc6452e
fix wip
e90a31f
Merge branch 'master' into ao-past-session-slashing-client
b8e8c24
fix wip II
4dce060
revert native provider
a150569
Merge branch 'master' into ao-past-session-slashing-runtime
58ea172
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
92fe5b4
propagate tx submission error
ed759e6
Merge branch 'master' into ao-past-session-slashing-client
fbc0e9d
Merge branch 'master' into ao-past-session-slashing-runtime
e48615e
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
cc96d7f
DEBUG: sync=trace
e9dc42b
print key ownership proof len
176c7b2
Merge branch 'master' into ao-past-session-slashing-client
92b13c4
panic repro
0f3a964
log validator index in panic message
2ba635b
Merge branch 'master' into ao-past-session-slashing-runtime
55c7947
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ef78e51
post merge fixes
e7b5a79
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
4f660d1
Merge branch 'master' into ao-past-session-slashing-runtime
89a1a16
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
3db92ba
replace debug assertion with a log
1edd122
Merge branch 'master' into ao-past-session-slashing-client
2b57c83
fix compilation
a70fbc5
Let's log the dispatch info in validate block.
bkchr 63871ac
fix double encoding
0196b63
Merge branch 'ao-past-session-slashing-client' of github.com:parityte…
6a4f7b3
Revert "Let's log the dispatch info in validate block."
63e3885
Revert "Let's log the dispatch info in validate block."
bkchr 029796a
Merge branch 'master' into ao-past-session-slashing-client
2c3f827
Merge branch 'ao-past-session-slashing-client' of github.com:parityte…
a58b144
Merge branch 'master' into ao-past-session-slashing-runtime
e6a14c8
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
bce0379
fix compilation
aa3247e
update to latest zombienet and fix test
d6a6f34
lower finality lag to 11
c95ad77
bump zombienet again
b39be9a
add a workaround, but still does not work
a767717
Update .gitlab-ci.yml
pepoviola f45594d
Merge branch 'master' into ao-past-session-slashing-runtime
4bd06fb
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
cfe4be4
add a comment and search logs on all nodes
9cb0723
Merge branch 'master' into ao-past-session-slashing-runtime
1ae22c5
Merge branch 'master' into ao-past-session-slashing-runtime
f2bcd9b
Merge branch 'master' into ao-past-session-slashing-runtime
8bb8e07
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
f621e4a
Merge branch 'master' into ao-past-session-slashing-runtime
92c5228
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
02fd54d
Merge branch 'master' into ao-past-session-slashing-client
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
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
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
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.
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.
We only keep that information for the unfinalized chain (and a bit more). Is that enough for this purpose?
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.
Good point. For the scraped included blocks this is fine. If we finalized a different block at the same height, that probably means the dispute has concluded before, so we should have called this already on some block producing node and
DISPUTE_CANDIDATE_LIFETIME_AFTER_FINALIZATION
helps with this race condition.There's a potential problem with runtime API calls to
key_ownership_proof
though since this block will be pruned once we reorg to and finalize the undisputed chain. But again, there's a time window between dispute concluding and that happening, so we should be able to slash with some high probability in that case.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.
I am uneasy about this. The raciness for participation already bothers me, but here it is even worse. I am not blocking this PR on this, as racy past session slashing is better than no past session slashing, but let's discuss this further.