Show / Hide Table of Contents

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.

Inheritance
System.Object
InvalidBlockException
InvalidBlockStateRootHashException
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
public class InvalidBlockStateRootHashException : InvalidBlockException

Constructors

| Improve this Doc View Source

InvalidBlockStateRootHashException(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
System.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 Source

ActualStateRootHash

The hash of state trie on the block executed.

Declaration
public HashDigest<SHA256> ActualStateRootHash { get; }
Property Value
Type Description
HashDigest<SHA256>
| Improve this Doc View Source

ExpectedStateRootHash

The hash recorded as StateRootHash>.

Declaration
public HashDigest<SHA256> ExpectedStateRootHash { get; }
Property Value
Type Description
HashDigest<SHA256>

Methods

| Improve this Doc View Source

GetObjectData(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
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium