Skip to content

CAP-83: Harden previousLedgerHash check in combineCandidates - #5380

Merged
marta-lokhova merged 1 commit into
stellar:masterfrom
bboston7:cc-fix
Jul 27, 2026
Merged

marta-lokhova merged 1 commit into
stellar:masterfrom
bboston7:cc-fix

Conversation

@bboston7

Copy link
Copy Markdown
Contributor

This change moves a correctness check for a transaction set's previousLedgerHash up before calling prepareForApply on that transaction set.

This change moves a correctness check for a transaction set's
`previousLedgerHash` up before calling `prepareForApply` on that
transaction set.
Copilot AI review requested due to automatic review settings July 25, 2026 00:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Moves previousLedgerHash validation before transaction-set preparation in consensus candidate selection.

Changes:

  • Down-ranks mismatched transaction sets without preparing them.
  • Adds coverage for mixed and exclusively mismatched candidates.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/herder/HerderSCPDriver.cpp Hardens candidate transaction-set selection.
src/herder/test/HerderTests.cpp Tests mismatched previous-ledger hashes.

@marta-lokhova

Copy link
Copy Markdown
Contributor

Looks like there are some quickstart failures. Not sure if they are related to the PR, but they also don't block the merge.

@marta-lokhova
marta-lokhova enabled auto-merge July 27, 2026 16:32
@marta-lokhova
marta-lokhova added this pull request to the merge queue Jul 27, 2026
@bboston7

Copy link
Copy Markdown
Contributor Author

Looks like there are some quickstart failures. Not sure if they are related to the PR, but they also don't block the merge.

Looks like they timed out trying to fetch an image from dockerhub. Unrelated to this PR. Thanks for merging!

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 27, 2026
@marta-lokhova
marta-lokhova added this pull request to the merge queue Jul 27, 2026
Merged via the queue into stellar:master with commit c107563 Jul 27, 2026
51 of 54 checks passed
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.

3 participants