-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Refactor getTrustedForLedger() #4424
Refactor getTrustedForLedger() #4424
Conversation
Look for validations associated with a specific ledger ID and sequence number.
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.
👍 Code is clean and straight-forward. Thanks for the patch!
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.
👍 Looks good to me! The testing looks sufficient.
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.
Thanks for the patch! Looks great.
Thanks @mtrippled! I think the existing unit tests already cover quite some ground. |
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.
Looks fine to me. Left a few small comments, but none of them are blockers; you can address them at your discretion.
@levinwinter regarding the comments above, I'm happy either way; I will keep this PR open for now so that you have a chance to address them if you wish. Please comment here to indicate when you think that this PR is ready to merge, and I'll merge it. |
Thank you for the feedback, @nbougalis! Let's keep it as is for now because I think we should see how to refactor this and the surrounding logic more, which could then include your suggestions. As this is too much for this PR, I'd be happy if @intelliot could merge this. |
* upstream/develop: Fix Conan version constraint in workflows (XRPLF#4430) Refactor getTrustedForLedger() (XRPLF#4424) README: Update "Build from source" section (XRPLF#4426)
* upstream/develop: Fix Conan version constraint in workflows (XRPLF#4430) Refactor getTrustedForLedger() (XRPLF#4424) README: Update "Build from source" section (XRPLF#4426)
* upstream/develop: Fix Conan version constraint in workflows (XRPLF#4430) Refactor getTrustedForLedger() (XRPLF#4424) README: Update "Build from source" section (XRPLF#4426)
* upstream/develop: Fix Conan version constraint in workflows (XRPLF#4430) Refactor getTrustedForLedger() (XRPLF#4424) README: Update "Build from source" section (XRPLF#4426)
* upstream/develop: Fix Conan version constraint in workflows (XRPLF#4430) Refactor getTrustedForLedger() (XRPLF#4424) README: Update "Build from source" section (XRPLF#4426)
* upstream/develop: Fix Conan version constraint in workflows (XRPLF#4430) Refactor getTrustedForLedger() (XRPLF#4424) README: Update "Build from source" section (XRPLF#4426)
…ctionality * upstream/develop: Fix Conan version constraint in workflows (XRPLF#4430) Refactor getTrustedForLedger() (XRPLF#4424) README: Update "Build from source" section (XRPLF#4426) README: Add a few source code starting points (XRPLF#4421)
…tpage * upstream/develop: Fix Conan version constraint in workflows (XRPLF#4430) Refactor getTrustedForLedger() (XRPLF#4424) README: Update "Build from source" section (XRPLF#4426) README: Add a few source code starting points (XRPLF#4421)
Look for validations associated with a specific ledger ID and sequence number.
This pull request fixes a bug that was detected automatically by the ByzzFuzz testing algorithm, as described in our accompanying paper Randomized Testing of Byzantine Fault Tolerant Algorithms. Florena Bușe (@florenabuse), Burcu Kulahcioglu Ozkan (@burcuku), and Levin N. Winter (@levinwinter) directly contributed to this work.
High Level Overview of Change
The
getTrustedForLedger()
method has been refactored to look for validations associated with a specific ledger ID and sequence number.Context of Change
From now on, the method can be used to filter for specific sequence numbers which was adapted throughout the codebase.
Type of Change