Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtxFetcher ¶
AtxFetcher defines an interface for fetching ATXs from remote peers.
type BallotFetcher ¶
BallotFetcher defines an interface for fetching Ballot from remote peers.
type BeaconCollector ¶
type BeaconCollector interface {
ReportBeaconFromBallot(types.EpochID, *types.Ballot, types.Beacon, fixed.Fixed)
}
BeaconCollector defines the interface that collect beacon values from Ballots.
type BeaconGetter ¶
BeaconGetter gets a beacon value.
type BlockFetcher ¶
BlockFetcher defines an interface for fetching blocks from remote peers.
type Fetcher ¶
type Fetcher interface { AtxFetcher BlockFetcher PoetProofFetcher BallotFetcher ProposalFetcher TxFetcher PeerTracker }
Fetcher is a general interface that defines a component capable of fetching data from remote peers.
type PeerTracker ¶
PeerTracker defines an interface to track peer hashes.
type PoetProofFetcher ¶
PoetProofFetcher defines an interface for fetching PoET proofs from remote peers.
type ProposalFetcher ¶
type ProposalFetcher interface {
GetProposals(context.Context, []types.ProposalID) error
}
ProposalFetcher defines an interface for fetching Proposal from remote peers.
type SyncStateProvider ¶
type SyncStateProvider interface { IsSynced(context.Context) bool IsBeaconSynced(types.EpochID) bool }
SyncStateProvider defines the interface that provides the node's sync state.
type Tortoise ¶
type Tortoise interface { OnBlock(*types.Block) OnHareOutput(types.LayerID, types.BlockID) TallyVotes(context.Context, types.LayerID) LatestComplete() types.LayerID Updates() map[types.LayerID]map[types.BlockID]bool }
Tortoise is an interface provided by tortoise implementation.