Class InvalidBlockPreEvaluationHashException
The exception that is thrown when the a Block's PreEvaluationHash is invalid.
Inherited Members
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public class InvalidBlockPreEvaluationHashException : InvalidBlockException, ISerializable, IEquatable<InvalidBlockPreEvaluationHashException>
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 |
---|---|---|
String | message | The message that describes the error. |
ImmutableArray<Byte> | actualPreEvaluationHash | The hash recorded as PreEvaluationHash. |
ImmutableArray<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
[Pure]
public ImmutableArray<byte> ActualPreEvaluationHash { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<Byte> |
ExpectedPreEvaluationHash
The hash recorded as PreEvaluationHash.
Declaration
[Pure]
public ImmutableArray<byte> ExpectedPreEvaluationHash { get; }
Property Value
Type | Description |
---|---|
ImmutableArray<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 |
---|---|
Boolean |
Equals(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 |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
The exception that is thrown when the a Block's PreEvaluationHash is invalid.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceGetObjectData(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 |
Overrides
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 |
---|---|
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 |
---|---|
Boolean |