Show / Hide Table of Contents

Class InvalidGenesisBlockException

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

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

Constructors

| Improve this Doc View Source

InvalidGenesisBlockException(BlockHash, BlockHash, String)

Initializes a new instance of the InvalidGenesisBlockException class.

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

The genesis block that the network expects.

BlockHash stored

The genesis block that a local IStore contains.

String message

The message that describes the error.

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 IStore contains.

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