Class ConsensusProposalMsg
A message class for Propose.
Implements
Inherited Members
Namespace: Libplanet.Net.Messages
Assembly: Libplanet.Net.dll
Syntax
public class ConsensusProposalMsg : ConsensusMsg, IEquatable<ConsensusMsg>
Constructors
| Improve this Doc View SourceConsensusProposalMsg(Proposal)
Initializes a new instance of the ConsensusProposalMsg class.
Declaration
public ConsensusProposalMsg(Proposal proposal)
Parameters
Type | Name | Description |
---|---|---|
Proposal | proposal | A Proposal of given height and round. |
ConsensusProposalMsg(Byte[][])
Initializes a new instance of the ConsensusProposalMsg class with marshalled message.
Declaration
public ConsensusProposalMsg(byte[][] dataframes)
Parameters
Type | Name | Description |
---|---|---|
Byte[][] | dataframes | A marshalled message. |
Properties
| Improve this Doc View SourceBlockHash
A BlockHash the message is written for.
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 SourceProposal
A Proposal of the message.
Declaration
public Proposal Proposal { get; }
Property Value
Type | Description |
---|---|
Proposal |
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 Propose.
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 Propose.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |