benchmarkconsensus

package
v1.3.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL