Class ConsensusVoteMsg
A abstract base class message for consensus.
Inheritance
ConsensusVoteMsg
Implements
Inherited Members
Namespace: Libplanet.Net.Messages
Assembly: Libplanet.Net.dll
Syntax
public abstract class ConsensusVoteMsg : ConsensusMsg, IEquatable<ConsensusMsg>
Constructors
| Improve this Doc View SourceConsensusVoteMsg(PublicKey, Int64, Int32, BlockHash, VoteFlag)
Initializes a new instance of the ConsensusMsg class.
Declaration
protected ConsensusVoteMsg(PublicKey validatorPublicKey, long height, int round, BlockHash blockHash, VoteFlag flag)
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. |
BlockHash | blockHash | A BlockHash the message is written for. |
VoteFlag | flag | A VoteFlag. |
Properties
| Improve this Doc View SourceBlockHash
A BlockHash the message is written for.
Declaration
public BlockHash BlockHash { get; }
Property Value
Type | Description |
---|---|
BlockHash |
Flag
A VoteFlag of message's vote.
Declaration
public VoteFlag Flag { get; }
Property Value
Type | Description |
---|---|
VoteFlag |