Skip to content

Allow for proposals to be built on top of historical revisions #1698

@RodrigoVillar

Description

@RodrigoVillar

AFAIK, SAE aims to support several debug APIs, one of which includes debug_intermediateRoots:

https://github.com/ava-labs/avalanchego/blob/09a9530c3145e3990aac1c920d7d72fea1077873/graft/coreth/eth/tracers/api.go#L540

This call executes each transaction at a given height H and stores the post-execution state root in a list; this list is returned at the end of the API call. If H is the latest block height, this call is successful if using Firewood. However, is H is less than the latest block height (i.e. a historical revision), then calling this API method with Firewood fails as this method will attempt to build a proposal on top of a historical revision, which Firewood currently doesn't support.

Originally, I thought that this was an issue specific to deferred persistence but even in a pre-deferred persistence world, this API call fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions