Show / Hide Table of Contents

Class ConsensusPreCommitMsg

A message class for PreCommit.

Inheritance
Object
MessageContent
ConsensusMsg
ConsensusPreCommitMsg
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 ConsensusPreCommitMsg : ConsensusMsg, IEquatable<ConsensusMsg>

Constructors

| Improve this Doc View Source

ConsensusPreCommitMsg(Vote)

Initializes a new instance of the ConsensusPreCommitMsg class.

Declaration
public ConsensusPreCommitMsg(Vote vote)
Parameters
Type Name Description
Vote vote

The Vote for PreCommit to attach.

Exceptions
Type Condition
ArgumentException

Thrown when given vote's Flag is not PreCommit.

| Improve this Doc View Source

ConsensusPreCommitMsg(Byte[][])

Initializes a new instance of the ConsensusPreCommitMsg class with marshalled message.

Declaration
public ConsensusPreCommitMsg(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

PreCommit

A Vote for PreCommit. This will always have its Flag set to PreCommit.

Declaration
public Vote PreCommit { get; }
Property Value
Type Description
Vote
| 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 PreCommit.

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 PreCommit.

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 PreCommit.

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