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.
Implements
Inherited Members
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public class InvalidGenesisBlockException : InvalidBlockException, ISerializable
Constructors
| Improve this Doc View SourceInvalidGenesisBlockException(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 SourceNetworkExpected
The genesis block that the network expects.
Declaration
[Pure]
public BlockHash NetworkExpected { get; }
Property Value
Type | Description |
---|---|
BlockHash |
Stored
The genesis block that a local IStore contains.
Declaration
[Pure]
public BlockHash Stored { get; }
Property Value
Type | Description |
---|---|
BlockHash |