Documentation
¶
Index ¶
- func NewManifest(nn gpbft.NetworkName, finality, bootstrapEpoch abi.ChainEpoch, ...) *manifest.Manifest
- type Config
- type F3
- func (fff *F3) GetCert(ctx context.Context, instance uint64) (*certs.FinalityCertificate, error)
- func (fff *F3) GetF3PowerTable(ctx context.Context, tsk types.TipSetKey) (gpbft.PowerEntries, error)
- func (fff *F3) GetLatestCert(ctx context.Context) (*certs.FinalityCertificate, error)
- func (fff *F3) GetManifest(ctx context.Context) (*manifest.Manifest, error)
- func (fff *F3) GetOrRenewParticipationTicket(_ context.Context, minerID uint64, previous types.F3ParticipationTicket, ...) (types.F3ParticipationTicket, error)
- func (fff *F3) GetPowerTable(ctx context.Context, tsk types.TipSetKey) (gpbft.PowerEntries, error)
- func (fff *F3) GetPowerTableByInstance(ctx context.Context, instance uint64) (gpbft.PowerEntries, error)
- func (fff *F3) IsRunning() bool
- func (fff *F3) ListParticipants() []types.F3Participant
- func (fff *F3) Participate(_ context.Context, ticket types.F3ParticipationTicket) (types.F3ParticipationLease, error)
- func (fff *F3) Progress() gpbft.InstanceProgress
- func (fff *F3) Stop(ctx context.Context) error
- type F3Params
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 (*F3) GetF3PowerTable ¶
func (*F3) GetLatestCert ¶
func (*F3) GetManifest ¶ added in v1.17.0
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 (*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) ListParticipants ¶ added in v1.17.0
func (fff *F3) ListParticipants() []types.F3Participant
func (*F3) Participate ¶
func (fff *F3) Participate(_ context.Context, ticket types.F3ParticipationTicket) (types.F3ParticipationLease, error)
func (*F3) Progress ¶ added in v1.17.0
func (fff *F3) Progress() gpbft.InstanceProgress
Click to show internal directories.
Click to hide internal directories.