stages

package
v0.0.0-...-92d349b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ConsensusStages

func ConsensusStages(ctx context.Context, historyReconstruction StageHistoryReconstructionCfg, beaconsBlocks StageBeaconsBlockCfg, beaconState StageBeaconStateCfg) []*sync_stages.Stage

StateStages are all stages necessary for basic unwind and stage computation, it is primarly used to process side forks and memory execution.

func NewConsensusStagedSync

func NewConsensusStagedSync(ctx context.Context,
	db kv.RwDB,
	forwardDownloader *network.ForwardBeaconDownloader,
	backwardDownloader *network.BackwardBeaconDownloader,
	genesisCfg *clparams.GenesisConfig,
	beaconCfg *clparams.BeaconChainConfig,
	state *state.BeaconState,
	tmpdir string,
	executionClient *execution_client.ExecutionClient,
	beaconDBCfg *rawdb.BeaconDataConfig,
) (*sync_stages.Sync, error)

func SpawnStageBeaconState

func SpawnStageBeaconState(cfg StageBeaconStateCfg, tx kv.RwTx, ctx context.Context) error

SpawnStageBeaconForward spawn the beacon forward stage

func SpawnStageBeaconsBlocks

func SpawnStageBeaconsBlocks(cfg StageBeaconsBlockCfg, s *sync_stages.StageState, tx kv.RwTx, ctx context.Context) error

SpawnStageBeaconsForward spawn the beacon forward stage

func SpawnStageHistoryReconstruction

func SpawnStageHistoryReconstruction(cfg StageHistoryReconstructionCfg, s *sync_stages.StageState, tx kv.RwTx, ctx context.Context) error

SpawnStageBeaconsForward spawn the beacon forward stage

Types

type StageBeaconStateCfg

type StageBeaconStateCfg struct {
	// contains filtered or unexported fields
}

func StageBeaconState

func StageBeaconState(db kv.RwDB,
	beaconCfg *clparams.BeaconChainConfig, state *state.BeaconState, executionClient *execution_client.ExecutionClient) StageBeaconStateCfg

type StageBeaconsBlockCfg

type StageBeaconsBlockCfg struct {
	// contains filtered or unexported fields
}

func StageBeaconsBlock

func StageBeaconsBlock(db kv.RwDB, downloader *network.ForwardBeaconDownloader, genesisCfg *clparams.GenesisConfig,
	beaconCfg *clparams.BeaconChainConfig, state *state.BeaconState, executionClient *execution_client.ExecutionClient) StageBeaconsBlockCfg

type StageHistoryReconstructionCfg

type StageHistoryReconstructionCfg struct {
	// contains filtered or unexported fields
}

func StageHistoryReconstruction

func StageHistoryReconstruction(db kv.RwDB, downloader *network.BackwardBeaconDownloader, genesisCfg *clparams.GenesisConfig, beaconCfg *clparams.BeaconChainConfig, beaconDBCfg *rawdb.BeaconDataConfig, state *state.BeaconState, tmpdir string, executionClient *execution_client.ExecutionClient) StageHistoryReconstructionCfg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL