Skip to content

Conversation

bingyanglin
Copy link
Contributor

Description of change

If DKG has failed, we might accidentally construct two end of epoch checkpoints, refer to [cherrypick] Fix logic for end-of-epoch checkpoint when dkg has failed (#19976)

Links to any relevant issues

fixes #4672

Type of change

  • Bug fix

How the change has been tested

Ran the local network with RUST_LOG=info cargo run --release --bin iota start --force-regenesis --with-faucet

Change checklist

Tick the boxes that are relevant to your changes, and delete any items that are not.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that new and existing unit tests pass locally with my changes

@bingyanglin bingyanglin added the node Issues related to the Core Node team label Jan 19, 2025
@bingyanglin bingyanglin self-assigned this Jan 19, 2025
Copy link

vercel bot commented Jan 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Visit Preview Jan 22, 2025 1:20pm
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview Jan 22, 2025 1:20pm
rebased-explorer ⬜️ Ignored (Inspect) Visit Preview Jan 22, 2025 1:20pm
wallet-dashboard ⬜️ Ignored (Inspect) Visit Preview Jan 22, 2025 1:20pm

@bingyanglin bingyanglin marked this pull request as ready for review January 20, 2025 03:45
@bingyanglin bingyanglin requested review from a team as code owners January 20, 2025 03:45
randomness_round,
));
}
// Determine whether to write pending checkpoint for user tx with randomness.
Copy link
Contributor

Choose a reason for hiding this comment

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

upstream had a newline between the bracket and the comment. Why did you remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added the newline back in a8a6d2a, thanks for pointing that out!

@bingyanglin bingyanglin merged commit ec88248 into develop Jan 23, 2025
38 of 39 checks passed
@bingyanglin bingyanglin deleted the core-node/fix/end-of-epoch-logic branch January 23, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-protocol node Issues related to the Core Node team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cherrypick] Fix logic for end-of-epoch checkpoint when dkg has faile… · MystenLabs/sui@29ff3e3

5 participants