Class ConsensusVoteSetBitsMsg
Implements
Inherited Members
Namespace: Libplanet.Net.Messages
Assembly: Libplanet.Net.dll
Syntax
public class ConsensusVoteSetBitsMsg : ConsensusMsg, IEquatable<ConsensusMsg>
Constructors
| Improve this Doc View SourceConsensusVoteSetBitsMsg(VoteSetBits)
Initializes a new instance of the ConsensusVoteSetBitsMsg class.
Declaration
public ConsensusVoteSetBitsMsg(VoteSetBits voteSetBits)
Parameters
Type | Name | Description |
---|---|---|
VoteSetBits | voteSetBits | A VoteSetBits of given height and round. |
ConsensusVoteSetBitsMsg(Byte[][])
Initializes a new instance of the ConsensusVoteSetBitsMsg class with marshalled message.
Declaration
public ConsensusVoteSetBitsMsg(byte[][] dataframes)
Parameters
Type | Name | Description |
---|---|---|
Byte[][] | dataframes | A marshalled message. |
Properties
| Improve this Doc View SourceBlockHash
A BlockHash of the message.
Declaration
public BlockHash BlockHash { get; }
Property Value
Type | Description |
---|---|
BlockHash |
DataFrames
The body of the message.
Declaration
public override IEnumerable<byte[]> DataFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Byte[]> |
Overrides
| Improve this Doc View SourceType
Enum
represents the type of the MessageContent.
Declaration
public override MessageContent.MessageType Type { get; }
Property Value
Type | Description |
---|---|
MessageContent.MessageType |
Overrides
| Improve this Doc View SourceVoteSetBits
A VoteSetBits of the message.
Declaration
public VoteSetBits VoteSetBits { get; }
Property Value
Type | Description |
---|---|
VoteSetBits |
Methods
| Improve this Doc View SourceEquals(ConsensusMsg)
Indicates whether the current ConsensusMsg is equal to another ConsensusMsg.
Declaration
public override 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. |
Overrides
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |