Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogTag = log.Service("consensus-algo-benchmark")
Functions ¶
func NewBenchmarkConsensusAlgo ¶
func NewBenchmarkConsensusAlgo( ctx context.Context, gossip gossiptopics.BenchmarkConsensus, blockStorage services.BlockStorage, consensusContext services.ConsensusContext, parentLogger log.BasicLogger, config Config, metricFactory metric.Factory, ) services.ConsensusAlgoBenchmark
Types ¶
type Config ¶
type Config interface { NodePublicKey() primitives.Ed25519PublicKey NodePrivateKey() primitives.Ed25519PrivateKey NetworkSize(asOfBlock uint64) uint32 FederationNodes(asOfBlock uint64) map[string]config.FederationNode ConstantConsensusLeader() primitives.Ed25519PublicKey ActiveConsensusAlgo() consensus.ConsensusAlgoType BenchmarkConsensusRetryInterval() time.Duration ConsensusRequiredQuorumPercentage() uint32 }
Click to show internal directories.
Click to hide internal directories.