Skip to content

Refactor StateProcessor to take in an interface #32733

@s1na

Description

@s1na

The idea is to have something like this:

type StateProcessor struct {
     chainReader ChainReader
}

With ChainReader being:

type ChainReader interface {
     consensus.ChainHeaderReader
     ChainContext
}

This allows someone using state processor as a library to run it on top of a custom data format.

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