Repository navigation
Cleanup publish path - #5213
Merged
Merged
Cleanup publish path#5213
Conversation
SirTyson
force-pushed
the
cleanup-publish
branch
from
April 21, 2026 23:13
0fed0b6 to
9ad9f2f
Compare
SirTyson
marked this pull request as ready for review
April 21, 2026 23:33
Contributor
There was a problem hiding this comment.
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/HistoryManagerImplAPIs to acceptImmutableLedgerDataPtrfor checkpoint queueing. - Simplified
HistoryManagerImpl::queueCurrentHistoryto use the snapshot’sHistoryArchiveStateinstead of reconstructing it. - Updated
LedgerManagerImplto 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Minor cleanup to the publish path, using the new
LedgerStateSnapshotstruct.Checklist
clang-formatv8.0.0 (viamake formator the Visual Studio extension)