Show / Hide Table of Contents

Class InvalidBlockPreEvaluationHashException

The exception that is thrown when the a Block's PreEvaluationHash is invalid.

Inheritance
System.Object
InvalidBlockException
InvalidBlockPreEvaluationHashException
Implements
IEquatable<InvalidBlockPreEvaluationHashException>
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
public class InvalidBlockPreEvaluationHashException : InvalidBlockException

Constructors

| Improve this Doc View Source

InvalidBlockPreEvaluationHashException(String, ImmutableArray<Byte>, ImmutableArray<Byte>)

Initializes a new instance of the InvalidBlockPreEvaluationHashException class.

Declaration
public InvalidBlockPreEvaluationHashException(string message, ImmutableArray<byte> actualPreEvaluationHash, ImmutableArray<byte> expectedPreEvaluationHash)
Parameters
Type Name Description
System.String message

The message that describes the error.

ImmutableArray<System.Byte> actualPreEvaluationHash

The hash recorded as PreEvaluationHash.

ImmutableArray<System.Byte> expectedPreEvaluationHash

The hash calculated from the block except StateRootHash.

Properties

| Improve this Doc View Source

ActualPreEvaluationHash

The hash calculated from the block except StateRootHash.

Declaration
public ImmutableArray<byte> ActualPreEvaluationHash { get; }
Property Value
Type Description
ImmutableArray<System.Byte>
| Improve this Doc View Source

ExpectedPreEvaluationHash

The hash recorded as PreEvaluationHash.

Declaration
public ImmutableArray<byte> ExpectedPreEvaluationHash { get; }
Property Value
Type Description
ImmutableArray<System.Byte>

Methods

| Improve this Doc View Source

Equals(InvalidBlockPreEvaluationHashException)

The exception that is thrown when the a Block's PreEvaluationHash is invalid.

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

Equals(Nullable<Object>)

The exception that is thrown when the a Block's PreEvaluationHash is invalid.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
System.Nullable<System.Object> obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetHashCode()

The exception that is thrown when the a Block's PreEvaluationHash is invalid.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

The exception that is thrown when the a Block's PreEvaluationHash is invalid.

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info
StreamingContext context

Operators

| Improve this Doc View Source

Equality(InvalidBlockPreEvaluationHashException, InvalidBlockPreEvaluationHashException)

The exception that is thrown when the a Block's PreEvaluationHash is invalid.

Declaration
public static bool operator ==(InvalidBlockPreEvaluationHashException left, InvalidBlockPreEvaluationHashException right)
Parameters
Type Name Description
InvalidBlockPreEvaluationHashException left
InvalidBlockPreEvaluationHashException right
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Inequality(InvalidBlockPreEvaluationHashException, InvalidBlockPreEvaluationHashException)

The exception that is thrown when the a Block's PreEvaluationHash is invalid.

Declaration
public static bool operator !=(InvalidBlockPreEvaluationHashException left, InvalidBlockPreEvaluationHashException right)
Parameters
Type Name Description
InvalidBlockPreEvaluationHashException left
InvalidBlockPreEvaluationHashException right
Returns
Type Description
System.Boolean

Implements

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