Skip to content

test(rpc): verify retained state after body pruning - #824

Merged
LucienSong merged 1 commit into
mainfrom
codex/historical-state-pruned-bodies-20261018
Oct 18, 2026
Merged

LucienSong merged 1 commit into
mainfrom
codex/historical-state-pruned-bodies-20261018

Conversation

@LucienSong

Copy link
Copy Markdown
Contributor

Historical contract queries must continue to use retained state after the corresponding transaction bodies expire. Add --historical-pruned-bodies to the existing lifecycle script: natural isolated wPoA production includes six signed transactions, expires the deployment and two storage-write bodies, then checks literal prior code, storage and nonce values before and after a persistent node reopen. Current state remains unchanged by the historical reads.

CI reuses its existing node build and SDK installation. The RPC guide documents the single command, libp2p requirement and scaled retention settings.

Validation: the new mode passed with the public v0.27.7 macOS binary and shell-sdk@0.14.0-rc.2. JavaScript and the affected CI shell passed syntax checks. The initial development-mining fixture did not establish finality and therefore did not prune the bodies; the retained failure led to using natural production and finality, without weakening the body-absence assertions. Required hosted checks remain pending.

Scope: one authority, the existing creation-address profile, state retention 64 and body retention 1. Independent import, the default 4096-block window and expired state roots remain unverified by this case.

@LucienSong
LucienSong merged commit 47a2f9d into main Oct 18, 2026
9 checks passed
@LucienSong
LucienSong deleted the codex/historical-state-pruned-bodies-20261018 branch October 18, 2026 23:25
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