vf3

package
v1.16.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0, MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManifestProvider

func NewManifestProvider(nn string, cs *chain.Store, sm *statemanger.Stmgr, ps *pubsub.PubSub, networkParams *config.NetworkParamsConfig) manifest.ManifestProvider

Types

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) GetLatestCert

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

func (*F3) Participate

func (fff *F3) Participate(ctx context.Context, minerIDAddress uint64, errCh chan<- string)

Participate runs the participation loop for givine minerID It is blocking

type F3Params

type F3Params struct {
	ManifestServerID string
	ManifestProvider manifest.ManifestProvider
	PubSub           *pubsub.PubSub
	Host             host.Host
	ChainStore       *chain.Store
	StateManager     *statemanger.Stmgr
	Datastore        datastore.Batching
	Wallet           v1api.IWallet
}

Jump to

Keyboard shortcuts

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