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 ConsensusMsg class.
Declaration
protected ConsensusMsg(PublicKey validatorPublicKey, long height, int round)
Parameters
Type | Name | Description |
---|---|---|
PublicKey | validatorPublicKey | A PublicKey of the validator who made this message. |
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 PublicKey of the validator who made this message.
Declaration
public PublicKey ValidatorPublicKey { get; }
Property Value
Type | Description |
---|---|
PublicKey |
Methods
| Improve this Doc View SourceEquals(ConsensusMsg)
Indicates whether the current ConsensusMsg is equal to another ConsensusMsg.
Declaration
public abstract bool Equals(ConsensusMsg other)
Parameters
Type | Name | Description |
---|---|---|
ConsensusMsg | other | An ConsensusMsg to compare with this ConsensusMsg. |
Returns
Type | Description |
---|---|
Boolean | true if the current ConsensusMsg is equal to the other parameter; otherwise, false. |
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 |