This repository has been 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
ordian d3273d7
runtime/vstaging: key_ownership_proof runtime API
ordian 8394592
runtime/ParachainHost: submit_report_dispute_lost
ordian d31edbb
fix key_ownership_proof API
ordian 5808d0b
runtime: submit_report_dispute_lost runtime API
ordian 78d9da0
nits
ordian 7caf651
Update node/subsystem-types/src/messages.rs
ordian ab08d67
merge master and resolve ExecutorParams conflicts
ordian 62e3831
revert unrelated fmt changes
ordian 5223ef3
dispute-coordinator: past session dispute slashing
ordian af6921d
encapsule runtime api call for submitting report
ordian 9d4e21f
prettify: extract into a function
ordian 39def6a
do not exit on runtime api error
ordian 1495b47
fix tests
ordian 5046c2d
Merge branch 'master' into ao-past-session-slashing-client
ordian f2119e4
Merge branch 'master' into ao-past-session-slashing-runtime
ordian a062b6c
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian eca1786
try initial zombienet test
ordian 13b6271
try something
ordian 77ec15a
fix a typo
ordian 49cb564
try cumulus-based collator
ordian 288696e
fix clippy
ordian 36d60d9
build polkadot-debug images with fast-runtime enabled
ordian 35d76d3
merge master, resolve conflicts, bump to v5
ordian b3b094c
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian 1494ff9
wip
ordian aafc9b0
runtime/inclusion: fix availability_threshold
ordian dc6452e
fix wip
ordian e90a31f
Merge branch 'master' into ao-past-session-slashing-client
ordian b8e8c24
fix wip II
ordian 4dce060
revert native provider
ordian a150569
Merge branch 'master' into ao-past-session-slashing-runtime
ordian 58ea172
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian 92fe5b4
propagate tx submission error
ordian ed759e6
Merge branch 'master' into ao-past-session-slashing-client
ordian fbc0e9d
Merge branch 'master' into ao-past-session-slashing-runtime
ordian e48615e
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian cc96d7f
DEBUG: sync=trace
ordian e9dc42b
print key ownership proof len
ordian 176c7b2
Merge branch 'master' into ao-past-session-slashing-client
ordian 92b13c4
panic repro
ordian 0f3a964
log validator index in panic message
ordian 2ba635b
Merge branch 'master' into ao-past-session-slashing-runtime
ordian 55c7947
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian ef78e51
post merge fixes
ordian e7b5a79
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian 4f660d1
Merge branch 'master' into ao-past-session-slashing-runtime
ordian 89a1a16
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian 3db92ba
replace debug assertion with a log
ordian 1edd122
Merge branch 'master' into ao-past-session-slashing-client
ordian 2b57c83
fix compilation
ordian a70fbc5
Let's log the dispatch info in validate block.
bkchr 63871ac
fix double encoding
ordian 0196b63
Merge branch 'ao-past-session-slashing-client' of github.com:parityte…
ordian 6a4f7b3
Revert "Let's log the dispatch info in validate block."
ordian 63e3885
Revert "Let's log the dispatch info in validate block."
bkchr 029796a
Merge branch 'master' into ao-past-session-slashing-client
ordian 2c3f827
Merge branch 'ao-past-session-slashing-client' of github.com:parityte…
ordian a58b144
Merge branch 'master' into ao-past-session-slashing-runtime
ordian e6a14c8
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian bce0379
fix compilation
ordian aa3247e
update to latest zombienet and fix test
ordian d6a6f34
lower finality lag to 11
ordian c95ad77
bump zombienet again
ordian b39be9a
add a workaround, but still does not work
ordian a767717
Update .gitlab-ci.yml
pepoviola f45594d
Merge branch 'master' into ao-past-session-slashing-runtime
ordian 4bd06fb
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian cfe4be4
add a comment and search logs on all nodes
ordian 9cb0723
Merge branch 'master' into ao-past-session-slashing-runtime
ordian 1ae22c5
Merge branch 'master' into ao-past-session-slashing-runtime
ordian f2bcd9b
Merge branch 'master' into ao-past-session-slashing-runtime
ordian 8bb8e07
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian f621e4a
Merge branch 'master' into ao-past-session-slashing-runtime
ordian 92c5228
Merge branch 'ao-past-session-slashing-runtime' into ao-past-session-…
ordian 02fd54d
Merge branch 'master' into ao-past-session-slashing-client
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
This file contains 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 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 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 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 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?
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.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.