Class ConsensusMaj23Msg
A message class for claiming that the peer has +2/3 votes.
Implements
Inherited Members
Namespace: Libplanet.Net.Messages
Assembly: Libplanet.Net.dll
Syntax
public class ConsensusMaj23Msg : ConsensusMsg, IEquatable<ConsensusMsg>
Constructors
| Improve this Doc View SourceConsensusMaj23Msg(Maj23)
Initializes a new instance of the ConsensusMaj23Msg class.
Declaration
public ConsensusMaj23Msg(Maj23 maj23)
Parameters
Type | Name | Description |
---|---|---|
Maj23 | maj23 | A Maj23 of given height and round. |
ConsensusMaj23Msg(Byte[][])
Initializes a new instance of the ConsensusMaj23Msg class with marshalled message.
Declaration
public ConsensusMaj23Msg(byte[][] dataframes)
Parameters
Type | Name | Description |
---|---|---|
Byte[][] | dataframes | A marshalled message. |
Properties
| Improve this Doc View SourceDataFrames
The body of the message.
Declaration
public override IEnumerable<byte[]> DataFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Byte[]> |
Overrides
| Improve this Doc View SourceMaj23
A Maj23 of the message.
Declaration
public Maj23 Maj23 { get; }
Property Value
Type | Description |
---|---|
Maj23 |
Type
Enum
represents the type of the MessageContent.
Declaration
public override MessageContent.MessageType Type { get; }
Property Value
Type | Description |
---|---|
MessageContent.MessageType |
Overrides
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)
A message class for claiming that the peer has +2/3 votes.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
A message class for claiming that the peer has +2/3 votes.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |