Show / Hide Table of Contents

Class ConsensusMsg

A abstract base class message for consensus.

Inheritance
Object
MessageContent
ConsensusMsg
ConsensusPreCommitMsg
ConsensusPreVoteMsg
ConsensusProposalMsg
Implements
IEquatable<ConsensusMsg>
Inherited Members
MessageContent.Type
MessageContent.DataFrames
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 abstract class ConsensusMsg : MessageContent, IEquatable<ConsensusMsg>

Constructors

| Improve this Doc View Source

ConsensusMsg(PublicKey, Int64, Int32, Nullable<BlockHash>)

Initializes a new instance of the ConsensusMsg class.

Declaration
protected ConsensusMsg(PublicKey validatorPublicKey, long height, int round, BlockHash? blockHash)
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.

Nullable<BlockHash> blockHash

A BlockHash the message is written for.

Fields

| Improve this Doc View Source

Nil

A abstract base class message for consensus.

Declaration
protected const byte Nil = 0
Field Value
Type Description
Byte

Properties

| Improve this Doc View Source

BlockHash

A BlockHash the message is written for.

Declaration
public BlockHash? BlockHash { get; }
Property Value
Type Description
Nullable<BlockHash>
| Improve this Doc View Source

Height

A Height the message is written for.

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

Round

A Round the message is written for.

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

ValidatorPublicKey

A PublicKey of the validator who made this message.

Declaration
public PublicKey ValidatorPublicKey { get; }
Property Value
Type Description
PublicKey

Methods

| Improve this Doc View Source

Equals(ConsensusMsg)

A abstract base class message for consensus.

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

Equals(Object)

A abstract base class message for consensus.

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

GetHashCode()

A abstract base class message for consensus.

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

Implements

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