Skip to content

Add logging for future debugging#5206

Merged
sisuresh merged 1 commit intostellar:masterfrom
sisuresh:logging
Apr 3, 2026
Merged

Add logging for future debugging#5206
sisuresh merged 1 commit intostellar:masterfrom
sisuresh:logging

Conversation

@sisuresh
Copy link
Copy Markdown
Contributor

@sisuresh sisuresh commented Apr 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 3, 2026 18:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds extra diagnostic logging when an applied ledger’s hash does not match the expected hash, to aid postmortem debugging of local-ledger corruption scenarios.

Changes:

  • When expectedHash mismatches, populate ledgerCloseMeta->ledgerHeader() and log the LedgerCloseMeta XDR payload encoded as base64.
  • Leave existing corruption handling intact (still throws std::runtime_error).

marta-lokhova
marta-lokhova previously approved these changes Apr 3, 2026
@sisuresh sisuresh enabled auto-merge April 3, 2026 19:18
@sisuresh sisuresh added this pull request to the merge queue Apr 3, 2026
Merged via the queue into stellar:master with commit 12e6a53 Apr 3, 2026
53 checks passed
@sisuresh sisuresh deleted the logging branch April 3, 2026 20:33
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