Table of Contents

Class ConsensusInfo

Namespace
Concordium.Grpc.V2
Assembly
Concordium.Sdk.dll

The response for GetConsensusInfo.

public sealed class ConsensusInfo : IMessage<ConsensusInfo>, IEquatable<ConsensusInfo>, IDeepCloneable<ConsensusInfo>, IBufferMessage, IMessage
Inheritance
ConsensusInfo
Implements
IMessage<ConsensusInfo>
IDeepCloneable<ConsensusInfo>
IBufferMessage
IMessage
Inherited Members

Constructors

ConsensusInfo()

public ConsensusInfo()

ConsensusInfo(ConsensusInfo)

public ConsensusInfo(ConsensusInfo other)

Parameters

other ConsensusInfo

Fields

BestBlockFieldNumber

Field number for the "best_block" field.

public const int BestBlockFieldNumber = 1

Field Value

int

BestBlockHeightFieldNumber

Field number for the "best_block_height" field.

public const int BestBlockHeightFieldNumber = 7

Field Value

int

BlockArriveLatencyEmaFieldNumber

Field number for the "block_arrive_latency_ema" field.

public const int BlockArriveLatencyEmaFieldNumber = 17

Field Value

int

BlockArriveLatencyEmsdFieldNumber

Field number for the "block_arrive_latency_emsd" field.

public const int BlockArriveLatencyEmsdFieldNumber = 18

Field Value

int

BlockArrivePeriodEmaFieldNumber

Field number for the "block_arrive_period_ema" field.

public const int BlockArrivePeriodEmaFieldNumber = 19

Field Value

int

BlockArrivePeriodEmsdFieldNumber

Field number for the "block_arrive_period_emsd" field.

public const int BlockArrivePeriodEmsdFieldNumber = 20

Field Value

int

BlockLastArrivedTimeFieldNumber

Field number for the "block_last_arrived_time" field.

public const int BlockLastArrivedTimeFieldNumber = 16

Field Value

int

BlockLastReceivedTimeFieldNumber

Field number for the "block_last_received_time" field.

public const int BlockLastReceivedTimeFieldNumber = 10

Field Value

int

BlockReceiveLatencyEmaFieldNumber

Field number for the "block_receive_latency_ema" field.

public const int BlockReceiveLatencyEmaFieldNumber = 11

Field Value

int

BlockReceiveLatencyEmsdFieldNumber

Field number for the "block_receive_latency_emsd" field.

public const int BlockReceiveLatencyEmsdFieldNumber = 12

Field Value

int

BlockReceivePeriodEmaFieldNumber

Field number for the "block_receive_period_ema" field.

public const int BlockReceivePeriodEmaFieldNumber = 13

Field Value

int

BlockReceivePeriodEmsdFieldNumber

Field number for the "block_receive_period_emsd" field.

public const int BlockReceivePeriodEmsdFieldNumber = 14

Field Value

int

BlocksReceivedCountFieldNumber

Field number for the "blocks_received_count" field.

public const int BlocksReceivedCountFieldNumber = 9

Field Value

int

BlocksVerifiedCountFieldNumber

Field number for the "blocks_verified_count" field.

public const int BlocksVerifiedCountFieldNumber = 15

Field Value

int

CurrentEpochFieldNumber

Field number for the "current_epoch" field.

public const int CurrentEpochFieldNumber = 33

Field Value

int

CurrentEraGenesisBlockFieldNumber

Field number for the "current_era_genesis_block" field.

public const int CurrentEraGenesisBlockFieldNumber = 29

Field Value

int

CurrentEraGenesisTimeFieldNumber

Field number for the "current_era_genesis_time" field.

public const int CurrentEraGenesisTimeFieldNumber = 30

Field Value

int

CurrentRoundFieldNumber

Field number for the "current_round" field.

public const int CurrentRoundFieldNumber = 32

Field Value

int

CurrentTimeoutDurationFieldNumber

Field number for the "current_timeout_duration" field.

public const int CurrentTimeoutDurationFieldNumber = 31

Field Value

int

EpochDurationFieldNumber

Field number for the "epoch_duration" field.

public const int EpochDurationFieldNumber = 5

Field Value

int

FinalizationCountFieldNumber

Field number for the "finalization_count" field.

public const int FinalizationCountFieldNumber = 23

Field Value

int

FinalizationPeriodEmaFieldNumber

Field number for the "finalization_period_ema" field.

public const int FinalizationPeriodEmaFieldNumber = 25

Field Value

int

FinalizationPeriodEmsdFieldNumber

Field number for the "finalization_period_emsd" field.

public const int FinalizationPeriodEmsdFieldNumber = 26

Field Value

int

GenesisBlockFieldNumber

Field number for the "genesis_block" field.

public const int GenesisBlockFieldNumber = 2

Field Value

int

GenesisIndexFieldNumber

Field number for the "genesis_index" field.

public const int GenesisIndexFieldNumber = 28

Field Value

int

GenesisTimeFieldNumber

Field number for the "genesis_time" field.

public const int GenesisTimeFieldNumber = 3

Field Value

int

LastFinalizedBlockFieldNumber

Field number for the "last_finalized_block" field.

public const int LastFinalizedBlockFieldNumber = 6

Field Value

int

LastFinalizedBlockHeightFieldNumber

Field number for the "last_finalized_block_height" field.

public const int LastFinalizedBlockHeightFieldNumber = 8

Field Value

int

LastFinalizedTimeFieldNumber

Field number for the "last_finalized_time" field.

public const int LastFinalizedTimeFieldNumber = 24

Field Value

int

ProtocolVersionFieldNumber

Field number for the "protocol_version" field.

public const int ProtocolVersionFieldNumber = 27

Field Value

int

SlotDurationFieldNumber

Field number for the "slot_duration" field.

public const int SlotDurationFieldNumber = 4

Field Value

int

TransactionsPerBlockEmaFieldNumber

Field number for the "transactions_per_block_ema" field.

public const int TransactionsPerBlockEmaFieldNumber = 21

Field Value

int

TransactionsPerBlockEmsdFieldNumber

Field number for the "transactions_per_block_emsd" field.

public const int TransactionsPerBlockEmsdFieldNumber = 22

Field Value

int

TriggerBlockTimeFieldNumber

Field number for the "trigger_block_time" field.

public const int TriggerBlockTimeFieldNumber = 34

Field Value

int

Properties

BestBlock

Hash of the current best block.

public BlockHash BestBlock { get; set; }

Property Value

BlockHash

BestBlockHeight

Absolute height of the best block.

public AbsoluteBlockHeight BestBlockHeight { get; set; }

Property Value

AbsoluteBlockHeight

BlockArriveLatencyEma

Exponential moving average latency between a block's slot time and its arrival.

public double BlockArriveLatencyEma { get; set; }

Property Value

double

BlockArriveLatencyEmsd

Standard deviation of exponential moving average latency between a block's slot time and its arrival.

public double BlockArriveLatencyEmsd { get; set; }

Property Value

double

BlockArrivePeriodEma

Exponential moving average time between block arrivals.

public double BlockArrivePeriodEma { get; set; }

Property Value

double

BlockArrivePeriodEmsd

Standard deviation of exponential moving average time between block arrivals.

public double BlockArrivePeriodEmsd { get; set; }

Property Value

double

BlockLastArrivedTime

The last time a block was verified (added to the tree).

public Timestamp BlockLastArrivedTime { get; set; }

Property Value

Timestamp

BlockLastReceivedTime

The last time a block was received.

public Timestamp BlockLastReceivedTime { get; set; }

Property Value

Timestamp

BlockReceiveLatencyEma

Exponential moving average latency between a block's slot time and received time.

public double BlockReceiveLatencyEma { get; set; }

Property Value

double

BlockReceiveLatencyEmsd

Standard deviation of exponential moving average latency between a block's slot time and received time.

public double BlockReceiveLatencyEmsd { get; set; }

Property Value

double

BlockReceivePeriodEma

Exponential moving average time between receiving blocks.

public double BlockReceivePeriodEma { get; set; }

Property Value

double

BlockReceivePeriodEmsd

Standard deviation of exponential moving average time between receiving blocks.

public double BlockReceivePeriodEmsd { get; set; }

Property Value

double

BlocksReceivedCount

Total number of blocks received.

public uint BlocksReceivedCount { get; set; }

Property Value

uint

BlocksVerifiedCount

Total number of blocks received and verified.

public uint BlocksVerifiedCount { get; set; }

Property Value

uint

CurrentEpoch

The current epoch. Present from protocol version 6.

public Epoch CurrentEpoch { get; set; }

Property Value

Epoch

CurrentEraGenesisBlock

Block hash of the genesis block of current era, i.e., since the last protocol update. Initially this is equal to 'genesis_block'.

public BlockHash CurrentEraGenesisBlock { get; set; }

Property Value

BlockHash

CurrentEraGenesisTime

Time when the current era started.

public Timestamp CurrentEraGenesisTime { get; set; }

Property Value

Timestamp

CurrentRound

The current round. Present from protocol version 6.

public Round CurrentRound { get; set; }

Property Value

Round

CurrentTimeoutDuration

The current duration to wait before a round times out. Present from protocol version 6.

public Duration CurrentTimeoutDuration { get; set; }

Property Value

Duration

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

EpochDuration

(Current) epoch duration in milliseconds.

public Duration EpochDuration { get; set; }

Property Value

Duration

FinalizationCount

Number of finalizations.

public uint FinalizationCount { get; set; }

Property Value

uint

FinalizationPeriodEma

Exponential moving average time between finalizations.

public double FinalizationPeriodEma { get; set; }

Property Value

double

FinalizationPeriodEmsd

Standard deviation of exponential moving average time between finalizations.

public double FinalizationPeriodEmsd { get; set; }

Property Value

double

GenesisBlock

Hash of the (original) genesis block.

public BlockHash GenesisBlock { get; set; }

Property Value

BlockHash

GenesisIndex

The number of chain restarts via a protocol update. A completed protocol update instruction might not change the protocol version specified in the previous field, but it always increments the genesis index.

public GenesisIndex GenesisIndex { get; set; }

Property Value

GenesisIndex

GenesisTime

Time of the (original) genesis block.

public Timestamp GenesisTime { get; set; }

Property Value

Timestamp

HasBlockArrivePeriodEma

Gets whether the "block_arrive_period_ema" field is set

public bool HasBlockArrivePeriodEma { get; }

Property Value

bool

HasBlockArrivePeriodEmsd

Gets whether the "block_arrive_period_emsd" field is set

public bool HasBlockArrivePeriodEmsd { get; }

Property Value

bool

HasBlockReceivePeriodEma

Gets whether the "block_receive_period_ema" field is set

public bool HasBlockReceivePeriodEma { get; }

Property Value

bool

HasBlockReceivePeriodEmsd

Gets whether the "block_receive_period_emsd" field is set

public bool HasBlockReceivePeriodEmsd { get; }

Property Value

bool

HasFinalizationPeriodEma

Gets whether the "finalization_period_ema" field is set

public bool HasFinalizationPeriodEma { get; }

Property Value

bool

HasFinalizationPeriodEmsd

Gets whether the "finalization_period_emsd" field is set

public bool HasFinalizationPeriodEmsd { get; }

Property Value

bool

LastFinalizedBlock

Hash of the last finalized block.

public BlockHash LastFinalizedBlock { get; set; }

Property Value

BlockHash

LastFinalizedBlockHeight

Absolute height of the last finalized block.

public AbsoluteBlockHeight LastFinalizedBlockHeight { get; set; }

Property Value

AbsoluteBlockHeight

LastFinalizedTime

Time of last verified finalization.

public Timestamp LastFinalizedTime { get; set; }

Property Value

Timestamp

Parser

public static MessageParser<ConsensusInfo> Parser { get; }

Property Value

MessageParser<ConsensusInfo>

ProtocolVersion

Currently active protocol version.

public ProtocolVersion ProtocolVersion { get; set; }

Property Value

ProtocolVersion

SlotDuration

(Current) slot duration in milliseconds. Present only in protocol versions 1-5.

public Duration SlotDuration { get; set; }

Property Value

Duration

TransactionsPerBlockEma

Exponential moving average number of transactions per block.

public double TransactionsPerBlockEma { get; set; }

Property Value

double

TransactionsPerBlockEmsd

Standard deviation of exponential moving average number of transactions per block.

public double TransactionsPerBlockEmsd { get; set; }

Property Value

double

TriggerBlockTime

The first block in the epoch with timestamp at least this is considered to be the trigger block for the epoch transition. Present from protocol version 6.

public Timestamp TriggerBlockTime { get; set; }

Property Value

Timestamp

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Returns

int

The number of bytes required to write this message to a coded output stream.

ClearBlockArrivePeriodEma()

Clears the value of the "block_arrive_period_ema" field

public void ClearBlockArrivePeriodEma()

ClearBlockArrivePeriodEmsd()

Clears the value of the "block_arrive_period_emsd" field

public void ClearBlockArrivePeriodEmsd()

ClearBlockReceivePeriodEma()

Clears the value of the "block_receive_period_ema" field

public void ClearBlockReceivePeriodEma()

ClearBlockReceivePeriodEmsd()

Clears the value of the "block_receive_period_emsd" field

public void ClearBlockReceivePeriodEmsd()

ClearFinalizationPeriodEma()

Clears the value of the "finalization_period_ema" field

public void ClearFinalizationPeriodEma()

ClearFinalizationPeriodEmsd()

Clears the value of the "finalization_period_emsd" field

public void ClearFinalizationPeriodEmsd()

Clone()

Creates a deep clone of this object.

public ConsensusInfo Clone()

Returns

ConsensusInfo

A deep clone of this object.

Equals(ConsensusInfo)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ConsensusInfo other)

Parameters

other ConsensusInfo

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

MergeFrom(ConsensusInfo)

Merges the given message into this one.

public void MergeFrom(ConsensusInfo other)

Parameters

other ConsensusInfo

Remarks

See the user guide for precise merge semantics.

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.