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

CSJ: prefer the Objector when replacing a Dynamo #1417

Merged
merged 6 commits into from
Mar 11, 2025

Conversation

nfrisby
Copy link
Contributor

@nfrisby nfrisby commented Mar 7, 2025

See the various commits. The CSJ: prefer the Objector when replacing a Dynamo commit in particular explains the key change within this PR.

@nfrisby nfrisby force-pushed the nfrisby/debug-genesis-test-failure branch from 13cc60d to a4c0109 Compare March 7, 2025 17:30
@nfrisby nfrisby force-pushed the nfrisby/debug-genesis-test-failure branch from a4c0109 to 407d2c9 Compare March 7, 2025 17:37
@nfrisby nfrisby marked this pull request as ready for review March 10, 2025 13:45
@nfrisby nfrisby force-pushed the nfrisby/debug-genesis-test-failure branch from 407d2c9 to 0306d8f Compare March 10, 2025 13:50
Copy link
Member

@amesgen amesgen left a comment

Choose a reason for hiding this comment

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

LGTM, only very minor comments

Also great tracing/pretty-printing improvements, will be nice for any future test deep dives 👏

@nfrisby nfrisby force-pushed the nfrisby/debug-genesis-test-failure branch from 0306d8f to b503287 Compare March 11, 2025 17:37
@nfrisby nfrisby enabled auto-merge March 11, 2025 17:38
nfrisby added 6 commits March 11, 2025 11:05
By printing the branches in order of descending intersection slot number, it
makes it obvious that they all branch off from the trunk, and not off of each
other.
This patch was introduced in response to a CSJ test failure; the property
expects that no honest header will be downloaded multiple times. Shape of the
failing test:

- The first Dynamo was adversary 3.
- honest 3 became the Objector, and killed that Dynamo.
- The next Dynamo was adversary 1.
- honest 1 became the Objector, and killed that Dynamo.

As as a result, some honest headers were downloaded by both honest 1 and honest
3.

This commit also renames `electNewDynamo` to `backfillDynamo` in order to
empahsize that this is only called when the Dynamo is lost. In particular, it's
not called by `rotateDynamo`.
@nfrisby nfrisby force-pushed the nfrisby/debug-genesis-test-failure branch from b503287 to c914969 Compare March 11, 2025 18:05
@nfrisby
Copy link
Contributor Author

nfrisby commented Mar 11, 2025

I didn't realize the older commits weren't signed. So I did a rebase that merely signed them --- I'm expecting auto-merge to work now.

@nfrisby nfrisby added this pull request to the merge queue Mar 11, 2025
Merged via the queue into main with commit b078458 Mar 11, 2025
20 checks passed
@nfrisby nfrisby deleted the nfrisby/debug-genesis-test-failure branch March 11, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants