simulator

package
v1.9.7-0...-59f21d5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeimdallSimulator

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

func NewHeimdall

func NewHeimdall(ctx context.Context, chain string, snapshotLocation string, logger log.Logger, iterations []uint64) (HeimdallSimulator, error)

func (*HeimdallSimulator) Close

func (h *HeimdallSimulator) Close()

func (*HeimdallSimulator) FetchCheckpoint

func (h *HeimdallSimulator) FetchCheckpoint(ctx context.Context, number int64) (*heimdall.Checkpoint, error)

func (*HeimdallSimulator) FetchCheckpointCount

func (h *HeimdallSimulator) FetchCheckpointCount(ctx context.Context) (int64, error)

func (*HeimdallSimulator) FetchLastNoAckMilestone

func (h *HeimdallSimulator) FetchLastNoAckMilestone(ctx context.Context) (string, error)

func (*HeimdallSimulator) FetchLatestSpan

func (h *HeimdallSimulator) FetchLatestSpan(ctx context.Context) (*heimdall.Span, error)

func (*HeimdallSimulator) FetchMilestone

func (h *HeimdallSimulator) FetchMilestone(ctx context.Context, number int64) (*heimdall.Milestone, error)

func (*HeimdallSimulator) FetchMilestoneCount

func (h *HeimdallSimulator) FetchMilestoneCount(ctx context.Context) (int64, error)

func (*HeimdallSimulator) FetchMilestoneID

func (h *HeimdallSimulator) FetchMilestoneID(ctx context.Context, milestoneID string) error

func (*HeimdallSimulator) FetchNoAckMilestone

func (h *HeimdallSimulator) FetchNoAckMilestone(ctx context.Context, milestoneID string) error

func (*HeimdallSimulator) FetchSpan

func (h *HeimdallSimulator) FetchSpan(ctx context.Context, spanID uint64) (*heimdall.Span, error)

func (*HeimdallSimulator) FetchStateSyncEvents

func (h *HeimdallSimulator) FetchStateSyncEvents(ctx context.Context, fromId uint64, to time.Time, limit int) ([]*heimdall.EventRecordWithTime, error)

type IndexFnType

type IndexFnType func(context.Context, snaptype.FileInfo, uint32, string, *background.Progress, log.Lvl, log.Logger) error

Jump to

Keyboard shortcuts

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