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) 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(stopCtx context.Context) (_err error)
- type PartialGMessage
- type PartialMessageValidator
- type PartiallyValidatedMessage
Constants ¶
This section is empty.
Variables ¶
View Source
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.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.
func (*F3) Progress ¶ added in v0.4.0
func (m *F3) Progress() (instant gpbft.InstanceProgress)
type PartialGMessage ¶ added in v0.8.0
type PartialGMessage struct { *gpbft.GMessage VoteValueKey gpbft.ECChainKey `cborgen:"maxlen=32"` }
func (*PartialGMessage) MarshalCBOR ¶ added in v0.8.0
func (t *PartialGMessage) MarshalCBOR(w io.Writer) error
func (*PartialGMessage) UnmarshalCBOR ¶ added in v0.8.0
func (t *PartialGMessage) UnmarshalCBOR(r io.Reader) (err error)
type PartialMessageValidator ¶ added in v0.8.0
type PartialMessageValidator interface { PartiallyValidateMessage(msg *PartialGMessage) (*PartiallyValidatedMessage, error) ValidateMessage(msg *PartiallyValidatedMessage) (gpbft.ValidatedMessage, error) }
type PartiallyValidatedMessage ¶ added in v0.8.0
type PartiallyValidatedMessage struct {
*PartialGMessage
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.