Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(spec): agreement for multiple heights #749

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

josef-widder
Copy link
Member

Closes: #744


PR author checklist

For all contributors

For external contributors

@josef-widder josef-widder requested a review from cason as a code owner January 10, 2025 14:38
nondet vote = oneOf(voteBuffer.get(v).union(AllFaultyVotes))
deliverVote(v, vote),
val props = propBuffer.get(v).union(AllFaultyProposals)
all{
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a deliverSomeProposal action in this file, with the same issue: it does not test if there is a proposal buffer to deliver.

Copy link
Contributor

Choose a reason for hiding this comment

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

This method, however, does not delivery faulty proposals.

Copy link
Contributor

Choose a reason for hiding this comment

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

The method is used in:

  • ./tests/decideForPastRound/decideForPastRoundrun.qnt
  • tests/line42/line42run.qnt

Copy link
Contributor

@cason cason left a comment

Choose a reason for hiding this comment

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

I think the issue is solved.

I am not sure, however, where and how this invariant is actually tested.

nondet vote = oneOf(voteBuffer.get(v).union(AllFaultyVotes))
deliverVote(v, vote),
val props = propBuffer.get(v).union(AllFaultyProposals)
all{
Copy link
Contributor

Choose a reason for hiding this comment

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

This method, however, does not delivery faulty proposals.

nondet vote = oneOf(voteBuffer.get(v).union(AllFaultyVotes))
deliverVote(v, vote),
val props = propBuffer.get(v).union(AllFaultyProposals)
all{
Copy link
Contributor

Choose a reason for hiding this comment

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

The method is used in:

  • ./tests/decideForPastRound/decideForPastRoundrun.qnt
  • tests/line42/line42run.qnt

specs/consensus/quint/statemachineAsync.qnt Show resolved Hide resolved
@josef-widder josef-widder added this pull request to the merge queue Jan 13, 2025
Merged via the queue into main with commit ab9e7a6 Jan 13, 2025
4 checks passed
@josef-widder josef-widder deleted the josef/i744-agreement branch January 13, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(spec): Agreement invariant should consider multiple heights
2 participants