vf3

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0, MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManifest added in v1.17.0

func NewManifest(
	nn gpbft.NetworkName,
	finality, bootstrapEpoch abi.ChainEpoch,
	ecPeriod time.Duration,
	initialPowerTable cid.Cid,
) *manifest.Manifest

NewManifest constructs a sane F3 manifest based on the passed parameters. This function does not look at and/or depend on the nodes build params, etc.

Types

type Config added in v1.17.0

type Config struct {
	// StaticManifest this instance's default manifest absent any dynamic manifests. Also see
	// PrioritizeStaticManifest.
	StaticManifest *manifest.Manifest
}

func NewConfig added in v1.17.0

func NewConfig(netCfg *config.NetworkParamsConfig) *Config

NewConfig creates a new F3 config based on the node's build parameters and the passed network name.

type F3

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

func New

func New(mctx context.Context, params F3Params) (*F3, error)

func (*F3) GetCert

func (fff *F3) GetCert(ctx context.Context, instance uint64) (*certs.FinalityCertificate, error)

func (*F3) GetF3PowerTable

func (fff *F3) GetF3PowerTable(ctx context.Context, tsk types.TipSetKey) (gpbft.PowerEntries, error)

func (*F3) GetLatestCert

func (fff *F3) GetLatestCert(ctx context.Context) (*certs.FinalityCertificate, error)

func (*F3) GetManifest added in v1.17.0

func (fff *F3) GetManifest(ctx context.Context) (*manifest.Manifest, error)

func (*F3) GetOrRenewParticipationTicket added in v1.17.0

func (fff *F3) GetOrRenewParticipationTicket(_ context.Context, minerID uint64, previous types.F3ParticipationTicket, instances uint64) (types.F3ParticipationTicket, error)

func (*F3) GetPowerTable

func (fff *F3) GetPowerTable(ctx context.Context, tsk types.TipSetKey) (gpbft.PowerEntries, error)

func (*F3) GetPowerTableByInstance added in v1.19.0

func (fff *F3) GetPowerTableByInstance(ctx context.Context, instance uint64) (gpbft.PowerEntries, error)

GetPowerTableByInstance returns the power table (committee) used to validate the specified instance.

func (*F3) IsRunning added in v1.17.0

func (fff *F3) IsRunning() bool

func (*F3) ListParticipants added in v1.17.0

func (fff *F3) ListParticipants() []types.F3Participant

func (*F3) Participate

func (*F3) Progress added in v1.17.0

func (fff *F3) Progress() gpbft.InstanceProgress

func (*F3) Stop added in v1.17.0

func (fff *F3) Stop(ctx context.Context) error

type F3Params

type F3Params struct {
	PubSub       *pubsub.PubSub
	Host         host.Host
	ChainStore   *chain.Store
	StateManager *statemanger.Stmgr
	Datastore    datastore.Batching
	WalletSign   wallet.WalletSignFunc
	SyncerAPI    v1api.ISyncer
	Config       *Config
	RepoPath     string

	Net v1api.INetwork
}

Jump to

Keyboard shortcuts

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