Show / Hide Table of Contents

Class InvalidGenesisBlockException

The exception that is thrown when the genesis block the contains mismatches to the genesis block the constructor (i.e., network) expects or the first block of which the doesn't contain, because the block which doesn't means the genesis block in other network.

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

Constructors

| Improve this Doc View Source

InvalidGenesisBlockException(String, BlockHash, BlockHash)

Initializes a new instance of the InvalidGenesisBlockException class.

Declaration
public InvalidGenesisBlockException(string message, BlockHash networkExpected, BlockHash stored)
Parameters
Type Name Description
System.String message

The message that describes the error.

BlockHash networkExpected

The genesis block that the network expects.

BlockHash stored

The genesis block that a local contains.

Properties

| Improve this Doc View Source

NetworkExpected

The genesis block that the network expects.

Declaration
public BlockHash NetworkExpected { get; }
Property Value
Type Description
BlockHash
| Improve this Doc View Source

Stored

The genesis block that a local contains.

Declaration
public BlockHash Stored { get; }
Property Value
Type Description
BlockHash
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium