Skip to content

Fix Digest state recovery checkpoint root - #2512

Merged
kushti merged 1 commit into
ergoplatform:v6.0.6from
a-shannon:fix/digest-recovery-checkpoint
Sep 8, 2026
Merged

Fix Digest state recovery checkpoint root#2512
kushti merged 1 commit into
ergoplatform:v6.0.6from
a-shannon:fix/digest-recovery-checkpoint

Conversation

@a-shannon

@a-shannon a-shannon commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Digest-state recovery derives the stored version and state root from the same epoch checkpoint used to recover the context. This keeps checkpoint metadata consistent before subsequent headers are replayed. The production change is limited to the recovery caller; the adjacent recovery work in #2424 is separate.

The tests cover checkpoint recovery and reopening, actual node-view startup with later headers in history, persisted checkpoint metadata after replay, and reopening and rolling back to that checkpoint. The approved test-only synchronization support remains included, with selected-header agreement and bounded observations under the existing deadlines.

This PR now targets v6.0.6. Commit d4a509121e4f2b0abba3db96afe9ebabf43ede72 replays the three approved commits onto release base db0f1a4299e6c2561152dc6ca07990aef5403ae2. All seven changed files have exactly the same contents as approved commit 2f005d3bc00e78f6ac83e9aa3d41cd1c7629acb3, and the feature diff has the same stable patch ID. Release build configuration and dependency versions are retained. Independent review confirmed the exact port.

Validation on the release branch: JDK 8 / Scala 2.12.20; all nine Digest recovery/state tests and all nine observation contracts passed, and integration sources compiled. Current release CI passed all eight checks, including node and integration tests and the three Scala versions for wallet/core. GitHub reports no merge conflicts with v6.0.6.

@a-shannon
a-shannon marked this pull request as ready for review September 6, 2026 15:47
@kushti
kushti changed the base branch from master to v6.0.6 September 7, 2026 20:00
Replay the three reviewed commits from PR ergoplatform#2512 on the release branch. Preserve the seven approved file contents and the checkpoint, startup and synchronization observation tests without importing unrelated master changes.
@a-shannon
a-shannon force-pushed the fix/digest-recovery-checkpoint branch from 2f005d3 to d4a5091 Compare September 8, 2026 07:17
@kushti
kushti merged commit 8995ff2 into ergoplatform:v6.0.6 Sep 8, 2026
8 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