consensus

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeEC

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

func NewFakeEC

func NewFakeEC(ctx context.Context, seed uint64, bootstrapEpoch int64, ecPeriod time.Duration, initialPowerTable gpbft.PowerEntries) *FakeEC

func (*FakeEC) Finalize

func (ec *FakeEC) Finalize(context.Context, gpbft.TipSetKey) error

func (*FakeEC) GetCurrentHead

func (ec *FakeEC) GetCurrentHead() int64

func (*FakeEC) GetHead

func (ec *FakeEC) GetHead(ctx context.Context) (ec.TipSet, error)

func (*FakeEC) GetParent

func (ec *FakeEC) GetParent(ctx context.Context, ts ec.TipSet) (ec.TipSet, error)

func (*FakeEC) GetPowerTable

func (ec *FakeEC) GetPowerTable(context.Context, gpbft.TipSetKey) (gpbft.PowerEntries, error)

func (*FakeEC) GetTipset

func (ec *FakeEC) GetTipset(_ context.Context, tsk gpbft.TipSetKey) (ec.TipSet, error)

func (*FakeEC) GetTipsetByEpoch

func (ec *FakeEC) GetTipsetByEpoch(ctx context.Context, epoch int64) (ec.TipSet, error)

GetTipsetByHeight should return a tipset or nil/empty byte array if it does not exists

func (*FakeEC) Pause

func (ec *FakeEC) Pause()

Pause pauses EC.

func (*FakeEC) Resume

func (ec *FakeEC) Resume()

Resume resumes EC.

Jump to

Keyboard shortcuts

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