Documentation
¶
Index ¶
- Variables
- type Config
- type Service
- func (s *Service) HandleBenchmarkConsensusCommit(ctx context.Context, input *gossiptopics.BenchmarkConsensusCommitInput) (*gossiptopics.EmptyOutput, error)
- func (s *Service) HandleBenchmarkConsensusCommitted(ctx context.Context, input *gossiptopics.BenchmarkConsensusCommittedInput) (*gossiptopics.EmptyOutput, error)
- func (s *Service) HandleBlockConsensus(ctx context.Context, input *handlers.HandleBlockConsensusInput) (*handlers.HandleBlockConsensusOutput, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var LogTag = log.Service("consensus-algo-benchmark")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { NodeAddress() primitives.NodeAddress BenchmarkConsensusConstantLeader() primitives.NodeAddress ActiveConsensusAlgo() consensus.ConsensusAlgoType BenchmarkConsensusRetryInterval() time.Duration BenchmarkConsensusRequiredQuorumPercentage() uint32 }
type Service ¶ added in v1.2.1
type Service struct { govnr.TreeSupervisor // contains filtered or unexported fields }
func NewBenchmarkConsensusAlgo ¶
func NewBenchmarkConsensusAlgo( ctx context.Context, gossip gossiptopics.BenchmarkConsensus, blockStorage services.BlockStorage, consensusContext services.ConsensusContext, network []primitives.NodeAddress, signer signer.Signer, parentLogger log.Logger, config Config, metricFactory metric.Factory, ) *Service
func (*Service) HandleBenchmarkConsensusCommit ¶ added in v1.2.1
func (s *Service) HandleBenchmarkConsensusCommit(ctx context.Context, input *gossiptopics.BenchmarkConsensusCommitInput) (*gossiptopics.EmptyOutput, error)
func (*Service) HandleBenchmarkConsensusCommitted ¶ added in v1.2.1
func (s *Service) HandleBenchmarkConsensusCommitted(ctx context.Context, input *gossiptopics.BenchmarkConsensusCommittedInput) (*gossiptopics.EmptyOutput, error)
func (*Service) HandleBlockConsensus ¶ added in v1.2.1
func (s *Service) HandleBlockConsensus(ctx context.Context, input *handlers.HandleBlockConsensusInput) (*handlers.HandleBlockConsensusOutput, error)
Click to show internal directories.
Click to hide internal directories.