Documentation ¶
Index ¶
- func CollectionNode(t *testing.T, hub *stub.Hub, identity *flow.Identity, ...) testmock.CollectionNode
- func CollectionNodes(t *testing.T, hub *stub.Hub, nNodes int, chainID flow.ChainID, ...) []testmock.CollectionNode
- func ConsensusNode(t *testing.T, hub *stub.Hub, identity *flow.Identity, ...) testmock.ConsensusNode
- func ConsensusNodes(t *testing.T, hub *stub.Hub, nNodes int, chainID flow.ChainID) []testmock.ConsensusNode
- func ExecutionNode(t *testing.T, hub *stub.Hub, identity *flow.Identity, ...) testmock.ExecutionNode
- func GenericNode(t testing.TB, hub *stub.Hub, identity *flow.Identity, ...) testmock.GenericNode
- func VerificationNode(t testing.TB, hub *stub.Hub, identity *flow.Identity, ...) testmock.VerificationNode
- type RoundRobinLeaderSelection
- func (s *RoundRobinLeaderSelection) DKG(blockID flow.Identifier) (hotstuff.DKG, error)
- func (s *RoundRobinLeaderSelection) Identities(blockID flow.Identifier, selector flow.IdentityFilter) (flow.IdentityList, error)
- func (s *RoundRobinLeaderSelection) Identity(blockID flow.Identifier, participantID flow.Identifier) (*flow.Identity, error)
- func (s *RoundRobinLeaderSelection) LeaderForView(view uint64) (flow.Identifier, error)
- func (s *RoundRobinLeaderSelection) Self() flow.Identifier
- type VerificationOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectionNode ¶
func CollectionNode(t *testing.T, hub *stub.Hub, identity *flow.Identity, identities []*flow.Identity, chainID flow.ChainID, options ...func(*protocol.State)) testmock.CollectionNode
CollectionNode returns a mock collection node.
func CollectionNodes ¶
func CollectionNodes(t *testing.T, hub *stub.Hub, nNodes int, chainID flow.ChainID, options ...func(*protocol.State)) []testmock.CollectionNode
CollectionNodes returns n collection nodes connected to the given hub.
func ConsensusNode ¶
func ConsensusNodes ¶
func ExecutionNode ¶
func GenericNode ¶
func VerificationNode ¶
func VerificationNode(t testing.TB, hub *stub.Hub, identity *flow.Identity, identities []*flow.Identity, assigner module.ChunkAssigner, requestInterval time.Duration, processInterval time.Duration, receiptsLimit uint, chunksLimit uint, failureThreshold uint, chainID flow.ChainID, collector module.VerificationMetrics, mempoolCollector module.MempoolMetrics, opts ...VerificationOpt) testmock.VerificationNode
Types ¶
type RoundRobinLeaderSelection ¶ added in v0.10.0
type RoundRobinLeaderSelection struct {
// contains filtered or unexported fields
}
func (*RoundRobinLeaderSelection) DKG ¶ added in v0.10.0
func (s *RoundRobinLeaderSelection) DKG(blockID flow.Identifier) (hotstuff.DKG, error)
func (*RoundRobinLeaderSelection) Identities ¶ added in v0.10.0
func (s *RoundRobinLeaderSelection) Identities(blockID flow.Identifier, selector flow.IdentityFilter) (flow.IdentityList, error)
func (*RoundRobinLeaderSelection) Identity ¶ added in v0.10.0
func (s *RoundRobinLeaderSelection) Identity(blockID flow.Identifier, participantID flow.Identifier) (*flow.Identity, error)
func (*RoundRobinLeaderSelection) LeaderForView ¶ added in v0.10.0
func (s *RoundRobinLeaderSelection) LeaderForView(view uint64) (flow.Identifier, error)
func (*RoundRobinLeaderSelection) Self ¶ added in v0.10.0
func (s *RoundRobinLeaderSelection) Self() flow.Identifier
type VerificationOpt ¶
type VerificationOpt func(*testmock.VerificationNode)
func WithMatchEngine ¶
func WithMatchEngine(eng network.Engine) VerificationOpt
func WithVerifierEngine ¶
func WithVerifierEngine(eng network.Engine) VerificationOpt
Click to show internal directories.
Click to hide internal directories.