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>IBufferMessageIMessage
- 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
BestBlockHeightFieldNumber
Field number for the "best_block_height" field.
public const int BestBlockHeightFieldNumber = 7
Field Value
BlockArriveLatencyEmaFieldNumber
Field number for the "block_arrive_latency_ema" field.
public const int BlockArriveLatencyEmaFieldNumber = 17
Field Value
BlockArriveLatencyEmsdFieldNumber
Field number for the "block_arrive_latency_emsd" field.
public const int BlockArriveLatencyEmsdFieldNumber = 18
Field Value
BlockArrivePeriodEmaFieldNumber
Field number for the "block_arrive_period_ema" field.
public const int BlockArrivePeriodEmaFieldNumber = 19
Field Value
BlockArrivePeriodEmsdFieldNumber
Field number for the "block_arrive_period_emsd" field.
public const int BlockArrivePeriodEmsdFieldNumber = 20
Field Value
BlockLastArrivedTimeFieldNumber
Field number for the "block_last_arrived_time" field.
public const int BlockLastArrivedTimeFieldNumber = 16
Field Value
BlockLastReceivedTimeFieldNumber
Field number for the "block_last_received_time" field.
public const int BlockLastReceivedTimeFieldNumber = 10
Field Value
BlockReceiveLatencyEmaFieldNumber
Field number for the "block_receive_latency_ema" field.
public const int BlockReceiveLatencyEmaFieldNumber = 11
Field Value
BlockReceiveLatencyEmsdFieldNumber
Field number for the "block_receive_latency_emsd" field.
public const int BlockReceiveLatencyEmsdFieldNumber = 12
Field Value
BlockReceivePeriodEmaFieldNumber
Field number for the "block_receive_period_ema" field.
public const int BlockReceivePeriodEmaFieldNumber = 13
Field Value
BlockReceivePeriodEmsdFieldNumber
Field number for the "block_receive_period_emsd" field.
public const int BlockReceivePeriodEmsdFieldNumber = 14
Field Value
BlocksReceivedCountFieldNumber
Field number for the "blocks_received_count" field.
public const int BlocksReceivedCountFieldNumber = 9
Field Value
BlocksVerifiedCountFieldNumber
Field number for the "blocks_verified_count" field.
public const int BlocksVerifiedCountFieldNumber = 15
Field Value
CurrentEpochFieldNumber
Field number for the "current_epoch" field.
public const int CurrentEpochFieldNumber = 33
Field Value
CurrentEraGenesisBlockFieldNumber
Field number for the "current_era_genesis_block" field.
public const int CurrentEraGenesisBlockFieldNumber = 29
Field Value
CurrentEraGenesisTimeFieldNumber
Field number for the "current_era_genesis_time" field.
public const int CurrentEraGenesisTimeFieldNumber = 30
Field Value
CurrentRoundFieldNumber
Field number for the "current_round" field.
public const int CurrentRoundFieldNumber = 32
Field Value
CurrentTimeoutDurationFieldNumber
Field number for the "current_timeout_duration" field.
public const int CurrentTimeoutDurationFieldNumber = 31
Field Value
EpochDurationFieldNumber
Field number for the "epoch_duration" field.
public const int EpochDurationFieldNumber = 5
Field Value
FinalizationCountFieldNumber
Field number for the "finalization_count" field.
public const int FinalizationCountFieldNumber = 23
Field Value
FinalizationPeriodEmaFieldNumber
Field number for the "finalization_period_ema" field.
public const int FinalizationPeriodEmaFieldNumber = 25
Field Value
FinalizationPeriodEmsdFieldNumber
Field number for the "finalization_period_emsd" field.
public const int FinalizationPeriodEmsdFieldNumber = 26
Field Value
GenesisBlockFieldNumber
Field number for the "genesis_block" field.
public const int GenesisBlockFieldNumber = 2
Field Value
GenesisIndexFieldNumber
Field number for the "genesis_index" field.
public const int GenesisIndexFieldNumber = 28
Field Value
GenesisTimeFieldNumber
Field number for the "genesis_time" field.
public const int GenesisTimeFieldNumber = 3
Field Value
LastFinalizedBlockFieldNumber
Field number for the "last_finalized_block" field.
public const int LastFinalizedBlockFieldNumber = 6
Field Value
LastFinalizedBlockHeightFieldNumber
Field number for the "last_finalized_block_height" field.
public const int LastFinalizedBlockHeightFieldNumber = 8
Field Value
LastFinalizedTimeFieldNumber
Field number for the "last_finalized_time" field.
public const int LastFinalizedTimeFieldNumber = 24
Field Value
ProtocolVersionFieldNumber
Field number for the "protocol_version" field.
public const int ProtocolVersionFieldNumber = 27
Field Value
SlotDurationFieldNumber
Field number for the "slot_duration" field.
public const int SlotDurationFieldNumber = 4
Field Value
TransactionsPerBlockEmaFieldNumber
Field number for the "transactions_per_block_ema" field.
public const int TransactionsPerBlockEmaFieldNumber = 21
Field Value
TransactionsPerBlockEmsdFieldNumber
Field number for the "transactions_per_block_emsd" field.
public const int TransactionsPerBlockEmsdFieldNumber = 22
Field Value
TriggerBlockTimeFieldNumber
Field number for the "trigger_block_time" field.
public const int TriggerBlockTimeFieldNumber = 34
Field Value
Properties
BestBlock
Hash of the current best block.
public BlockHash BestBlock { get; set; }
Property Value
BestBlockHeight
Absolute height of the best block.
public AbsoluteBlockHeight BestBlockHeight { get; set; }
Property Value
BlockArriveLatencyEma
Exponential moving average latency between a block's slot time and its arrival.
public double BlockArriveLatencyEma { get; set; }
Property Value
BlockArriveLatencyEmsd
Standard deviation of exponential moving average latency between a block's slot time and its arrival.
public double BlockArriveLatencyEmsd { get; set; }
Property Value
BlockArrivePeriodEma
Exponential moving average time between block arrivals.
public double BlockArrivePeriodEma { get; set; }
Property Value
BlockArrivePeriodEmsd
Standard deviation of exponential moving average time between block arrivals.
public double BlockArrivePeriodEmsd { get; set; }
Property Value
BlockLastArrivedTime
The last time a block was verified (added to the tree).
public Timestamp BlockLastArrivedTime { get; set; }
Property Value
BlockLastReceivedTime
The last time a block was received.
public Timestamp BlockLastReceivedTime { get; set; }
Property Value
BlockReceiveLatencyEma
Exponential moving average latency between a block's slot time and received time.
public double BlockReceiveLatencyEma { get; set; }
Property Value
BlockReceiveLatencyEmsd
Standard deviation of exponential moving average latency between a block's slot time and received time.
public double BlockReceiveLatencyEmsd { get; set; }
Property Value
BlockReceivePeriodEma
Exponential moving average time between receiving blocks.
public double BlockReceivePeriodEma { get; set; }
Property Value
BlockReceivePeriodEmsd
Standard deviation of exponential moving average time between receiving blocks.
public double BlockReceivePeriodEmsd { get; set; }
Property Value
BlocksReceivedCount
Total number of blocks received.
public uint BlocksReceivedCount { get; set; }
Property Value
BlocksVerifiedCount
Total number of blocks received and verified.
public uint BlocksVerifiedCount { get; set; }
Property Value
CurrentEpoch
The current epoch. Present from protocol version 6.
public Epoch CurrentEpoch { get; set; }
Property Value
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
CurrentEraGenesisTime
Time when the current era started.
public Timestamp CurrentEraGenesisTime { get; set; }
Property Value
CurrentRound
The current round. Present from protocol version 6.
public Round CurrentRound { get; set; }
Property Value
CurrentTimeoutDuration
The current duration to wait before a round times out. Present from protocol version 6.
public Duration CurrentTimeoutDuration { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
EpochDuration
(Current) epoch duration in milliseconds.
public Duration EpochDuration { get; set; }
Property Value
FinalizationCount
Number of finalizations.
public uint FinalizationCount { get; set; }
Property Value
FinalizationPeriodEma
Exponential moving average time between finalizations.
public double FinalizationPeriodEma { get; set; }
Property Value
FinalizationPeriodEmsd
Standard deviation of exponential moving average time between finalizations.
public double FinalizationPeriodEmsd { get; set; }
Property Value
GenesisBlock
Hash of the (original) genesis block.
public BlockHash GenesisBlock { get; set; }
Property Value
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
GenesisTime
Time of the (original) genesis block.
public Timestamp GenesisTime { get; set; }
Property Value
HasBlockArrivePeriodEma
Gets whether the "block_arrive_period_ema" field is set
public bool HasBlockArrivePeriodEma { get; }
Property Value
HasBlockArrivePeriodEmsd
Gets whether the "block_arrive_period_emsd" field is set
public bool HasBlockArrivePeriodEmsd { get; }
Property Value
HasBlockReceivePeriodEma
Gets whether the "block_receive_period_ema" field is set
public bool HasBlockReceivePeriodEma { get; }
Property Value
HasBlockReceivePeriodEmsd
Gets whether the "block_receive_period_emsd" field is set
public bool HasBlockReceivePeriodEmsd { get; }
Property Value
HasFinalizationPeriodEma
Gets whether the "finalization_period_ema" field is set
public bool HasFinalizationPeriodEma { get; }
Property Value
HasFinalizationPeriodEmsd
Gets whether the "finalization_period_emsd" field is set
public bool HasFinalizationPeriodEmsd { get; }
Property Value
LastFinalizedBlock
Hash of the last finalized block.
public BlockHash LastFinalizedBlock { get; set; }
Property Value
LastFinalizedBlockHeight
Absolute height of the last finalized block.
public AbsoluteBlockHeight LastFinalizedBlockHeight { get; set; }
Property Value
LastFinalizedTime
Time of last verified finalization.
public Timestamp LastFinalizedTime { get; set; }
Property Value
Parser
public static MessageParser<ConsensusInfo> Parser { get; }
Property Value
- MessageParser<ConsensusInfo>
ProtocolVersion
Currently active protocol version.
public ProtocolVersion ProtocolVersion { get; set; }
Property Value
SlotDuration
(Current) slot duration in milliseconds. Present only in protocol versions 1-5.
public Duration SlotDuration { get; set; }
Property Value
TransactionsPerBlockEma
Exponential moving average number of transactions per block.
public double TransactionsPerBlockEma { get; set; }
Property Value
TransactionsPerBlockEmsd
Standard deviation of exponential moving average number of transactions per block.
public double TransactionsPerBlockEmsd { get; set; }
Property Value
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
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
ConsensusInfoAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
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
CodedOutputStreamCoded output stream to write the data to. Must not be null.