Documentation ¶
Index ¶
- 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(ctx context.Context) (*certs.FinalityCertificate, error)
- func (m *F3) GetPowerTable(ctx context.Context, ts gpbft.TipSetKey) (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.Instant)
- func (m *F3) Start(startCtx context.Context) (_err error)
- func (m *F3) Stop(stopCtx context.Context) (_err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.ManifestProvider, ds datastore.Datastore, h host.Host, ps *pubsub.PubSub, verif gpbft.Verifier, ec 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) 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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.