Show / Hide Table of Contents

Class InvalidTxGenesisHashException

The exception that is thrown when the GenesisHash is different from the HashDigest<T> of Genesis.

Inheritance
Object
InvalidTxException
InvalidTxGenesisHashException
Inherited Members
InvalidTxException.TxId
Namespace: Libplanet.Tx
Assembly: Libplanet.dll
Syntax
public sealed class InvalidTxGenesisHashException : InvalidTxException

Constructors

| Improve this Doc View Source

InvalidTxGenesisHashException(TxId, HashDigest<SHA256>, Nullable<HashDigest<SHA256>>, String)

Initializes a new instance of the InvalidTxGenesisHashException class.

Declaration
public InvalidTxGenesisHashException(TxId txid, HashDigest<SHA256> expectedGenesisHash, HashDigest<SHA256>? improperGenesisHash, string message)
Parameters
Type Name Description
TxId txid

The invalid Transaction<T>'s Id. It is automatically included to the string.

HashDigest<SHA256> expectedGenesisHash

The HashDigest<T> value of Genesis.

Nullable<HashDigest<SHA256>> improperGenesisHash

The actual GenesisHash. This can be null.

String message

The message that describes the error.

Properties

| Improve this Doc View Source

ExpectedGenesisHash

The HashDigest<T> value of Genesis.

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

ImproperGenesisHash

The actual GenesisHash, which is improper.

Declaration
public HashDigest<SHA256>? ImproperGenesisHash { get; }
Property Value
Type Description
Nullable<HashDigest<SHA256>>
  • Improve this Doc
  • View Source
Back to top Copyright © 2019–2020 Planetarium