Documentation ¶
Index ¶
- type BlockSyncReactor
- type Gossiper
- func (_m *Gossiper) GossipBlockPartsForCatchup(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- func (_m *Gossiper) GossipCommit(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- func (_m *Gossiper) GossipProposal(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- func (_m *Gossiper) GossipProposalBlockParts(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- func (_m *Gossiper) GossipVote(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
- func (_m *Gossiper) GossipVoteSetMaj23(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockSyncReactor ¶
BlockSyncReactor is an autogenerated mock type for the BlockSyncReactor type
func (*BlockSyncReactor) GetMaxPeerBlockHeight ¶
func (_m *BlockSyncReactor) GetMaxPeerBlockHeight() int64
GetMaxPeerBlockHeight provides a mock function with given fields:
func (*BlockSyncReactor) GetRemainingSyncTime ¶
func (_m *BlockSyncReactor) GetRemainingSyncTime() time.Duration
GetRemainingSyncTime provides a mock function with given fields:
func (*BlockSyncReactor) GetTotalSyncedTime ¶
func (_m *BlockSyncReactor) GetTotalSyncedTime() time.Duration
GetTotalSyncedTime provides a mock function with given fields:
func (*BlockSyncReactor) SwitchToBlockSync ¶
func (_m *BlockSyncReactor) SwitchToBlockSync(_a0 state.State) error
SwitchToBlockSync provides a mock function with given fields: _a0
type Gossiper ¶
Gossiper is an autogenerated mock type for the Gossiper type
func NewGossiper ¶
NewGossiper creates a new instance of Gossiper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Gossiper) GossipBlockPartsForCatchup ¶
func (_m *Gossiper) GossipBlockPartsForCatchup(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
GossipBlockPartsForCatchup provides a mock function with given fields: ctx, rs, prs
func (*Gossiper) GossipCommit ¶
func (_m *Gossiper) GossipCommit(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
GossipCommit provides a mock function with given fields: ctx, rs, prs
func (*Gossiper) GossipProposal ¶
func (_m *Gossiper) GossipProposal(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
GossipProposal provides a mock function with given fields: ctx, rs, prs
func (*Gossiper) GossipProposalBlockParts ¶
func (_m *Gossiper) GossipProposalBlockParts(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
GossipProposalBlockParts provides a mock function with given fields: ctx, rs, prs
func (*Gossiper) GossipVote ¶
func (_m *Gossiper) GossipVote(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
GossipVote provides a mock function with given fields: ctx, rs, prs
func (*Gossiper) GossipVoteSetMaj23 ¶
func (_m *Gossiper) GossipVoteSetMaj23(ctx context.Context, rs types.RoundState, prs *types.PeerRoundState)
GossipVoteSetMaj23 provides a mock function with given fields: ctx, rs, prs