Show / Hide Table of Contents

Class ConsensusProposalMsg

A message class for Propose.

Inheritance
Object
MessageContent
ConsensusMsg
ConsensusProposalMsg
Implements
IEquatable<ConsensusMsg>
Inherited Members
ConsensusMsg.Nil
ConsensusMsg.ValidatorPublicKey
ConsensusMsg.Height
ConsensusMsg.Round
ConsensusMsg.BlockHash
MessageContent.Id
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Net.Messages
Assembly: Libplanet.Net.dll
Syntax
public class ConsensusProposalMsg : ConsensusMsg, IEquatable<ConsensusMsg>

Constructors

| Improve this Doc View Source

ConsensusProposalMsg(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.

| Improve this Doc View Source

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 Source

DataFrames

The body of the message.

Declaration
public override IEnumerable<byte[]> DataFrames { get; }
Property Value
Type Description
IEnumerable<Byte[]>
Overrides
MessageContent.DataFrames
| Improve this Doc View Source

Proposal

A marshalled Block.

Declaration
public Proposal Proposal { get; }
Property Value
Type Description
Proposal
| Improve this Doc View Source

Type

Enum represents the type of the MessageContent.

Declaration
public override MessageContent.MessageType Type { get; }
Property Value
Type Description
MessageContent.MessageType
Overrides
MessageContent.Type

Methods

| Improve this Doc View Source

Equals(ConsensusMsg)

A message class for Propose.

Declaration
public override bool Equals(ConsensusMsg other)
Parameters
Type Name Description
ConsensusMsg other
Returns
Type Description
Boolean
Overrides
ConsensusMsg.Equals(ConsensusMsg)
| Improve this Doc View Source

Equals(Object)

A message class for Propose.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
ConsensusMsg.Equals(Object)
| Improve this Doc View Source

GetHashCode()

A message class for Propose.

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
ConsensusMsg.GetHashCode()

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium