Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Guide updates for disputes. #3401

Merged
merged 8 commits into from
Jul 8, 2021
Merged

Guide updates for disputes. #3401

merged 8 commits into from
Jul 8, 2021

Conversation

eskimor
Copy link
Member

@eskimor eskimor commented Jul 2, 2021

Missing review remarks of dispute distribution guide PR and integration of dispute distribution into other subsystems.

@eskimor eskimor added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Jul 2, 2021
@eskimor eskimor marked this pull request as draft July 2, 2021 15:11
@eskimor eskimor marked this pull request as ready for review July 2, 2021 16:05
@eskimor eskimor requested a review from rphmeier July 2, 2021 16:14
@eskimor eskimor force-pushed the rk-disputes-guide branch from 96d0e19 to 38f2ac0 Compare July 5, 2021 05:58
…tion.md

Co-authored-by: Sergei Shulepov <sergei@parity.io>

Check DB for recorded votes for non concluded disputes we have not yet
recorded a local statement for.
For all of those send `DisputeParticipationMessage::Participate` message to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +119 to +121
13. If the dispute now has supermajority votes in the "invalid" direction, there
is no need to do anything explicitly. The actual rollback will be handled
during the active leaves update by observing digests from the runtime.
Copy link
Contributor

@rphmeier rphmeier Jul 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#3348

This diff contains changes to 'active-disputes' so we make a distinction between "recent" (everything in DISPUTE_WINDOW, concluded or not) and "active" (subset of recent which is either not concluded or was concluded within some small amount of time)

Due to this, we actually never prune anything from active-disputes until it's purged by session age.

The motivation of the change in #3348 is to make sure the provisioner can still provide votes that are submitted shortly after conclusion to the on-chain logic. Those votes will be rewarded less than earlier ones.

Copy link
Contributor

@rphmeier rphmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look fine but we need to reconcile with #3348

@eskimor
Copy link
Member Author

eskimor commented Jul 6, 2021

Changes look fine but we need to reconcile with #3348

Let's get #3348 merged - I will resolve conflicts afterwards.

@eskimor
Copy link
Member Author

eskimor commented Jul 8, 2021

@rphmeier - if it's fine with you, I would like to change plans and merge this now, as I am going to be on vacation tomorrow.

@eskimor eskimor merged commit 519df6c into master Jul 8, 2021
@eskimor eskimor deleted the rk-disputes-guide branch July 8, 2021 21:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants