Skip to content

Tracking: Support invalidating and reconsidering blocks in the NonFinalizedState via RPC methods #8634

Open
0 of 9 issues completed
@arya2

Description

Motivation

This would be useful for testing forks and chain reorganizations, it was mentioned in the forums as a requirement for dex support and in the Regtest tracking issue.

See this comment for more information about the motivation.

Design

Add invalidate()/reconsider_block() methods to the NonFinalizedState, accept a new channel in write_blocks_from_channels() running in the the block write task (or refactor the existing channels into a single channel receiving an enum), add StateService Request variants for invalidating/reconsidering blocks, and add the invalidate()/reconsiderblock() RPC methods that call the StateService with the new Request variants.

Implementation Plan:

See Sub-issues below

Sub-issues

Metadata

Assignees

No one assigned

    Labels

    A-rpcArea: Remote Procedure Call interfacesA-stateArea: State / database changesC-testingCategory: These are tests

    Type

    No type

    Projects

    • Status

      New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions