Skip to content

Conversation

phrwlk
Copy link
Contributor

@phrwlk phrwlk commented Sep 29, 2025

Update comments in core/rawdb/accessors_state.go for:

  • ReadStateAccountIndex
  • ReadStateStorageIndex
  • ReadStateAccountHistory
  • ReadStateStorageHistory

These functions do not return a “state root”. They return the account/storage index blobs and concatenated account/storage data blobs from the ancient store. The new comments align with the documented layout in triedb/pathdb/history_state.go (metadata, account index, account data, storage index, storage data) and with how the readers consume these blobs. This prevents developer confusion and misinterpretation of the APIs while preserving the clarification about id-1 freezer positioning. No functional code changes.

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