Class InvalidBlockPreEvaluationHashException
The exception that is thrown when the a Block's PreEvaluationHash is invalid.
Implements
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
public class InvalidBlockPreEvaluationHashException : InvalidBlockException
Constructors
| Improve this Doc View SourceInvalidBlockPreEvaluationHashException(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 SourceActualPreEvaluationHash
The hash calculated from the block except StateRootHash.
Declaration
public ImmutableArray<byte> ActualPreEvaluationHash { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<System.Byte> |
ExpectedPreEvaluationHash
The hash recorded as PreEvaluationHash.
Declaration
public ImmutableArray<byte> ExpectedPreEvaluationHash { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<System.Byte> |
Methods
| Improve this Doc View SourceEquals(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 |
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 |
GetHashCode()
The exception that is thrown when the a Block's PreEvaluationHash is invalid.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
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 SourceEquality(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 |
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 |