Documentation
¶
Index ¶
- func BorDevnetChainConfigWithNoBlockSealDelays() *chain.Config
- type Harness
- func (h *Harness) BorConfig() *borcfg.BorConfig
- func (h *Harness) GetStageProgress(ctx context.Context, t *testing.T, stageID stages.SyncStage) uint64
- func (h *Harness) Logger() log.Logger
- func (h *Harness) ReadHeaderByNumber(ctx context.Context, number uint64) (header *types.Header, err error)
- func (h *Harness) ReadLastStateSyncEventNumPerBlockFromDB(ctx context.Context) (nums map[uint64]uint64, err error)
- func (h *Harness) ReadSpansFromDB(ctx context.Context) (spans []*heimdall.Span, err error)
- func (h *Harness) ReadStateSyncEventsFromDB(ctx context.Context) (eventIDs []uint64, err error)
- func (h *Harness) RunMiningStageForward(ctx context.Context, t *testing.T, id stages.SyncStage)
- func (h *Harness) RunMiningStageForwardWithErrorIs(ctx context.Context, t *testing.T, id stages.SyncStage, wantErr error)
- func (h *Harness) RunMiningStageForwardWithReturnError(ctx context.Context, t *testing.T, id stages.SyncStage) error
- func (h *Harness) RunStateStageForwardWithReturnError(t *testing.T, id stages.SyncStage) error
- func (h *Harness) RunStateSyncStageForward(t *testing.T, id stages.SyncStage)
- func (h *Harness) RunStateSyncStageForwardWithErrorIs(t *testing.T, id stages.SyncStage, wantErr error)
- func (h *Harness) SaveHeader(ctx context.Context, t *testing.T, header *types.Header)
- func (h *Harness) SaveStageProgress(ctx context.Context, t *testing.T, stageID stages.SyncStage, progress uint64)
- func (h *Harness) SetMiningBlockEmptyHeader(ctx context.Context, t *testing.T, parentNum uint64)
- func (h *Harness) StateSyncUnwindPoint() uint64
- func (h *Harness) StateSyncUnwindReason() stagedsync.UnwindReason
- type HarnessCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Harness ¶
type Harness struct {
// contains filtered or unexported fields
}
func InitHarness ¶
func (*Harness) GetStageProgress ¶
func (*Harness) ReadHeaderByNumber ¶
func (*Harness) ReadLastStateSyncEventNumPerBlockFromDB ¶
func (*Harness) ReadSpansFromDB ¶
func (*Harness) ReadStateSyncEventsFromDB ¶
func (*Harness) RunMiningStageForward ¶
func (*Harness) RunMiningStageForwardWithErrorIs ¶
func (*Harness) RunMiningStageForwardWithReturnError ¶
func (*Harness) RunStateStageForwardWithReturnError ¶
func (*Harness) RunStateSyncStageForward ¶
func (*Harness) RunStateSyncStageForwardWithErrorIs ¶
func (*Harness) SaveHeader ¶
func (*Harness) SaveStageProgress ¶
func (*Harness) SetMiningBlockEmptyHeader ¶
func (*Harness) StateSyncUnwindPoint ¶
func (*Harness) StateSyncUnwindReason ¶
func (h *Harness) StateSyncUnwindReason() stagedsync.UnwindReason
type HarnessCfg ¶
type HarnessCfg struct { ChainConfig *chain.Config GenerateChainNumBlocks int LogLvl log.Lvl HeimdallProducersOverride map[uint64][]valset.Validator }
func (*HarnessCfg) GetOrCreateDefaultHeimdallProducersOverride ¶
func (hc *HarnessCfg) GetOrCreateDefaultHeimdallProducersOverride() map[uint64][]valset.Validator
Click to show internal directories.
Click to hide internal directories.