Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Add a state comparison for blockchain tests if they fail in certain contexts #2154

@fselmo

Description

@fselmo

If the only block header field mismatch is the state root, use the state.meta_witness and the postState of the test fixture to try to reconcile where there may be discrepancies. If running verify_state yields a success, it means we likely have an extra account in our state that isn't present in the postState of the test. Inspecting the meta_witness.accounts_queried can help elucidate if there are any extra accounts in the state that may need to be marked for deletion, thus giving us a different state root even though everything in the postState is accurate.

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