Skip to content

Preserve applied blocks through recursive chain fallback - #2515

Open
a-shannon wants to merge 1 commit into
ergoplatform:masterfrom
a-shannon:fix/applied-block-prefix
Open

Preserve applied blocks through recursive chain fallback#2515
a-shannon wants to merge 1 commit into
ergoplatform:masterfrom
a-shannon:fix/applied-block-prefix

Conversation

@a-shannon

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

Copy link
Copy Markdown
Contributor

When recursive chain fallback reaches a state already at its branching point, the holder now retains the blocks applied earlier in the same update. Their transactions reach final mempool reconciliation and their blocks reach wallet scanning.

Validation: JDK 8, Scala 2.12.20; four focused holder tests and 18 existing holder regression configurations pass. The two no-rollback cases fail against the original implementation. The focused fixture exercises the real recursive holder and its mempool, wallet and event consumers, with controls for an empty prefix and an actual rollback. Independent source and test review completed.

Integration with #2424: retain this suffix in its same-version branch while preserving that PR's rollback helper and identifier conversion.

CI: all eight checks passed on 7fa13e88ad7d381a821d2477fbc3073d2b3d7835, including node integration tests. CI run.

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.

1 participant