consensus

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockInfo added in v0.3.3

type BlockInfo struct {
	Height int64
	Time   time.Time
	// contains filtered or unexported fields
}

type IrisMetrics added in v0.3.0

type IrisMetrics struct {
	Candidates metrics.Gauge
	// Total power of all validators.
	ValidatorsPower metrics.Gauge
	// Number of validators who did not sign.
	MissingValidators metrics.Gauge
	// Total power of the missing validators.
	MissingValidatorsPower metrics.Gauge
	// Number of validators who tried to double sign.
	ByzantineValidators metrics.Gauge
	// Total power of the byzantine validators.
	ByzantineValidatorsPower metrics.Gauge

	//average block interval in last 100 blocks (in seconds)
	AvgBlockIntervalSeconds metrics.Gauge

	//Voting Power of the validator
	VotingPower metrics.Gauge
	//ratio of Voting Power of the validator to total voting power
	VotingPowerRatio metrics.Gauge
	// ratio of signed blocks in last 100 blocks
	UpTime metrics.Gauge
	// missed precommited since monitor up
	MissedPrecommits metrics.Gauge
	// given address
	Address     types.Address
	SignedCount int
	MissedCount int
	// contains filtered or unexported fields
}

func NewIrisMetrics added in v0.3.0

func NewIrisMetrics() IrisMetrics

type Metrics

type Metrics struct {
	TmMetrics   consensus.Metrics
	IrisMetrics IrisMetrics
}

func PrometheusMetrics

func PrometheusMetrics() *Metrics

PrometheusMetrics returns Metrics build using Prometheus client library.

func (*Metrics) RecordMetrics

func (cs *Metrics) RecordMetrics(ctx app.Context, cdc *wire.Codec, block *types.Block)

func (*Metrics) SetAddress added in v0.3.3

func (cs *Metrics) SetAddress(addr_str string)

func (*Metrics) Start

func (cs *Metrics) Start(ctx app.Context)

Jump to

Keyboard shortcuts

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