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.
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public class InvalidBlockStateRootHashException : InvalidBlockException
Constructors
| Improve this Doc View SourceInvalidBlockStateRootHashException(HashDigest<SHA256>, HashDigest<SHA256>, String)
Initializes a new instance of the InvalidBlockStateRootHashException class.
Declaration
public InvalidBlockStateRootHashException(HashDigest<SHA256> expectedStateRootHash, HashDigest<SHA256> actualStateRootHash, string message)
Parameters
Type | Name | Description |
---|---|---|
HashDigest<SHA256> | expectedStateRootHash | The hash recorded as StateRootHash>. |
HashDigest<SHA256> | actualStateRootHash | The hash of state trie on the block executed. |
String | message | The message that describes the error. |
Properties
| Improve this Doc View SourceActualStateRootHash
The hash of state trie on the block executed.
Declaration
public HashDigest<SHA256> ActualStateRootHash { get; }
Property Value
Type | Description |
---|---|
HashDigest<SHA256> |
ExpectedStateRootHash
The hash recorded as StateRootHash>.
Declaration
public HashDigest<SHA256> ExpectedStateRootHash { get; }
Property Value
Type | Description |
---|---|
HashDigest<SHA256> |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |