Skip to content

triedb/pathdb: bintrie flat state has no reverse-diff support for reorgs #34709

@CPerezz

Description

@CPerezz

Summary

The bintrie flat state implementation (stemData / per-stem KV storage in triedb/pathdb) has no reverse-diff representation in history_state.go. When a bintrie block is reverted (reorg, sidechain winner), the reverse diff only contains MPT-shaped accountOrigin / storageOrigin entries — there is no mechanism to roll back the corresponding stem entries in the bintrie flat state. The bintrie flat state and the actual state root silently diverge after any revert.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions