Documentation
¶
Index ¶
- Variables
- type BroadcastMessage
- type F3
- func (m *F3) Broadcast(ctx context.Context, signatureBuilder *gpbft.SignatureBuilder, msgSig []byte, ...)
- func (m *F3) GetCert(ctx context.Context, instance uint64) (*certs.FinalityCertificate, error)
- func (m *F3) GetLatestCert(context.Context) (*certs.FinalityCertificate, error)
- func (m *F3) GetPowerTable(ctx context.Context, ts gpbft.TipSetKey) (gpbft.PowerEntries, error)
- func (m *F3) GetPowerTableByInstance(ctx context.Context, instance uint64) (gpbft.PowerEntries, error)
- func (m *F3) IsRunning() bool
- func (m *F3) Manifest() manifest.Manifest
- func (m *F3) MessagesToSign() <-chan *gpbft.MessageBuilder
- func (m *F3) Progress() (instant gpbft.InstanceProgress)
- func (m *F3) Start(startCtx context.Context) (_err error)
- func (m *F3) Stop(ctx context.Context) (_err error)
Constants ¶
This section is empty.
Variables ¶
var ErrF3NotRunning = errors.New("f3 is not running")
ErrF3NotRunning is returned when an operation is attempted on a non-running F3 instance.
Functions ¶
This section is empty.
Types ¶
type BroadcastMessage ¶ added in v0.0.3
type BroadcastMessage func(*gpbft.MessageBuilder)
type F3 ¶
type F3 struct {
// contains filtered or unexported fields
}
func New ¶
func New(_ctx context.Context, manifest manifest.Manifest, ds datastore.Datastore, h host.Host, ps *pubsub.PubSub, verif gpbft.Verifier, ecBackend ec.Backend, diskPath string) (*F3, error)
New creates and setups f3 with libp2p The context is used for initialization not runtime.
func (*F3) GetLatestCert ¶
func (*F3) GetPowerTable ¶ added in v0.0.3
GetPowerTable returns the power table for the given tipset Used mainly for testing purposes
func (*F3) GetPowerTableByInstance ¶ added in v0.8.7
func (m *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 v0.0.3
IsRunning returns true if gpbft is running Used mainly for testing purposes
func (*F3) MessagesToSign ¶ added in v0.0.3
func (m *F3) MessagesToSign() <-chan *gpbft.MessageBuilder
MessagesToSign returns a channel of outbound messages that need to be signed by the client(s). - The same channel is shared between all callers and will never be closed. - GPBFT will block if this channel is not read from.
func (*F3) Progress ¶ added in v0.4.0
func (m *F3) Progress() (instant gpbft.InstanceProgress)
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
certchain package is a testing utility for generating and validating finality certificates.
|
certchain package is a testing utility for generating and validating finality certificates. |
cmd
|
|
internal
|
|