Skip to content

Refactor rewards api to prepare for lodestar-z integration #8690

@twoeths

Description

@twoeths

Problem description

right now we couple typescript state-transition package in beacon-node in order to implement rewards api

preState = processSlots(preState, block.slot); // Dial preState's slot to block.slot

specifically it call processSlots() and beforeProcessEpoch() and it access some properties of CachedBeaconState there

Solution description

need to refactor in a way that same beacon-node code can also work with lodestar-z state-transition
need to open an issue for it in that case

this is part of #8650

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions