Skip to content

Cleanup publish path - #5213

Merged
SirTyson merged 1 commit into
stellar:masterfrom
SirTyson:cleanup-publish
Apr 22, 2026
Merged

SirTyson merged 1 commit into
stellar:masterfrom
SirTyson:cleanup-publish

Conversation

@SirTyson

@SirTyson SirTyson commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Description

Minor cleanup to the publish path, using the new LedgerStateSnapshot struct.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

@SirTyson
SirTyson marked this pull request as ready for review April 21, 2026 23:33

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

Note

Copilot was unable to run its full agentic suite in this review.

This PR cleans up the history publish/checkpoint queueing path by switching it to consume a precomputed immutable ledger snapshot (ImmutableLedgerDataPtr / LedgerStateSnapshot) rather than recomputing publish state from the live bucketlists.

Changes:

  • Updated HistoryManager / HistoryManagerImpl APIs to accept ImmutableLedgerDataPtr for checkpoint queueing.
  • Simplified HistoryManagerImpl::queueCurrentHistory to use the snapshot’s HistoryArchiveState instead of reconstructing it.
  • Updated LedgerManagerImpl to call the new checkpoint API with the applied ledger state.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/ledger/LedgerManagerImpl.cpp Switches checkpoint queueing call site to pass the applied immutable ledger state.
src/history/HistoryManager.h Updates the public HistoryManager interface to accept ImmutableLedgerDataPtr.
src/history/HistoryManagerImpl.h Updates HistoryManagerImpl overrides to match the new interface.
src/history/HistoryManagerImpl.cpp Uses snapshot-derived HistoryArchiveState and removes live-bucketlist reconstruction code.

Comment thread src/history/HistoryManagerImpl.cpp Resolved
Comment thread src/history/HistoryManagerImpl.cpp Resolved
Comment thread src/history/HistoryManager.h Resolved

@marta-lokhova marta-lokhova 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.

thanks!

@SirTyson
SirTyson added this pull request to the merge queue Apr 22, 2026
Merged via the queue into stellar:master with commit 16e4251 Apr 22, 2026
71 checks passed
@SirTyson
SirTyson deleted the cleanup-publish branch April 22, 2026 22:31
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