Documentation ¶
Index ¶
- type ActiveSetFetcher
- type AtxFetcher
- type BallotFetcher
- type BeaconCollector
- type BeaconGetter
- type BlockFetcher
- type Fetcher
- type GetAtxOpt
- type GetAtxOpts
- type MalfeasanceProofFetcher
- type PeerTracker
- type PoetProofFetcher
- type ProposalFetcher
- type SyncStateProvider
- type Tortoise
- type TxFetcher
- type ValidationRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveSetFetcher ¶ added in v1.1.5
ActiveSetFetcher defines an interface downloading active set.
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 ActiveSetFetcher ProposalFetcher TxFetcher PeerTracker }
Fetcher is a general interface that defines a component capable of fetching data from remote peers.
type GetAtxOpt ¶ added in v1.3.4
type GetAtxOpt func(*GetAtxOpts)
func WithoutLimiting ¶ added in v1.3.4
func WithoutLimiting() GetAtxOpt
type GetAtxOpts ¶ added in v1.3.4
type GetAtxOpts struct {
LimitingOff bool
}
type MalfeasanceProofFetcher ¶ added in v1.4.3
type MalfeasanceProofFetcher interface {
GetMalfeasanceProofs(context.Context, []types.NodeID) error
}
MalfeasanceProofFetcher defines an interface for fetching malfeasance proofs.
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.BlockHeader) OnHareOutput(types.LayerID, types.BlockID) OnWeakCoin(types.LayerID, bool) TallyVotes(types.LayerID) LatestComplete() types.LayerID Updates() []result.Layer OnApplied(types.LayerID, types.Hash32) bool OnMalfeasance(types.NodeID) OnAtx(types.EpochID, types.ATXID, *atxsdata.ATX) GetMissingActiveSet(types.EpochID, []types.ATXID) []types.ATXID }
Tortoise is an interface provided by tortoise implementation.