Class ConsensusMsg
A abstract base class message for consensus.
Inheritance
ConsensusMsg
Implements
Inherited Members
Namespace: Libplanet.Net.Messages
Assembly: Libplanet.Net.dll
Syntax
public abstract class ConsensusMsg : MessageContent, IEquatable<ConsensusMsg>
Constructors
| Improve this Doc View SourceConsensusMsg(PublicKey, Int64, Int32)
Initializes a new instance of the Consensus
Declaration
protected ConsensusMsg(PublicKey validatorPublicKey, long height, int round)
Parameters
Type | Name | Description |
---|---|---|
Public |
validatorPublicKey | A Public |
Int64 | height | A Height the message is for. |
Int32 | round | A Round the message is written for. |
Properties
| Improve this Doc View SourceHeight
A Height the message is written for.
Declaration
public long Height { get; }
Property Value
Type | Description |
---|---|
Int64 |
Round
A Round the message is written for.
Declaration
public int Round { get; }
Property Value
Type | Description |
---|---|
Int32 |
ValidatorPublicKey
A Public
Declaration
public PublicKey ValidatorPublicKey { get; }
Property Value
Type | Description |
---|---|
Public |
Methods
| Improve this Doc View SourceEquals(ConsensusMsg)
Indicates whether the current Consensus
Declaration
public abstract bool Equals(ConsensusMsg other)
Parameters
Type | Name | Description |
---|---|---|
Consensus |
other | An Consensus |
Returns
Type | Description |
---|---|
Boolean | true if the current Consensus |
Equals(Object)
A abstract base class message for consensus.
Declaration
public abstract override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
A abstract base class message for consensus.
Declaration
public abstract override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |