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
Object
Exception
InvalidBlockException
InvalidBlockStateRootHashException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public class InvalidBlockStateRootHashException : InvalidBlockException, ISerializable

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
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
[Pure]
public HashDigest<SHA256> ActualStateRootHash { get; }
Property Value
Type Description
HashDigest<SHA256>
| Improve this Doc View Source

ExpectedStateRootHash

The hash recorded as StateRootHash>.

Declaration
[Pure]
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
Overrides
Exception.GetObjectData(SerializationInfo, StreamingContext)

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium