Show / Hide Table of Contents

Class ConsensusPreVoteMsg

A message class for PreVote.

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

Constructors

| Improve this Doc View Source

ConsensusPreVoteMsg(Vote)

Initializes a new instance of the ConsensusPreVoteMsg class.

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

The Vote for PreVote to attach.

Exceptions
Type Condition
ArgumentException

Thrown when given vote's Flag is not PreVote.

| Improve this Doc View Source

ConsensusPreVoteMsg(Byte[][])

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

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

PreVote

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

Declaration
public Vote PreVote { 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 PreVote.

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

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

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