Class InvalidBlockStateRootHashException
The exception that is thrown when the state root hash in the block has mismatches to the state root hash of the trie on the block executed in local.
Implements
Inherited Members
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public class InvalidBlockStateRootHashException : InvalidBlockException, ISerializable
Constructors
| Improve this Doc View SourceInvalidBlockStateRootHashException(String, HashDigest<SHA256>, HashDigest<SHA256>)
Initializes a new instance of the InvalidBlockStateRootHashException class.
Declaration
public InvalidBlockStateRootHashException(string message, HashDigest<SHA256> expectedStateRootHash, HashDigest<SHA256> actualStateRootHash)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message that describes the error. |
HashDigest<SHA256> | expectedStateRootHash | The hash recorded as StateRootHash>. |
HashDigest<SHA256> | actualStateRootHash | The hash of state trie on the block executed. |
Properties
| Improve this Doc View SourceActualStateRootHash
The hash of state trie on the block executed.
Declaration
[Pure]
public HashDigest<SHA256> ActualStateRootHash { get; }
Property Value
Type | Description |
---|---|
HashDigest<SHA256> |
ExpectedStateRootHash
The hash recorded as StateRootHash>.
Declaration
[Pure]
public HashDigest<SHA256> ExpectedStateRootHash { get; }
Property Value
Type | Description |
---|---|
HashDigest<SHA256> |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
The exception that is thrown when the state root hash in the block has mismatches to the state root hash of the trie on the block executed in local.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |