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(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
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 |