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 BlockLocator which the IStore doesn't contain, because the block which IStore doesn't means the genesis block in other network.
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public class InvalidGenesisBlockException : InvalidBlockException
Constructors
| Improve this Doc View SourceInvalidGenesisBlockException(String, BlockHash, BlockHash)
Initializes a new instance of the InvalidGenesisBlockException class.
Declaration
public InvalidGenesisBlockException(string message, BlockHash networkExpected, BlockHash stored)
Parameters
Type | Name | Description |
---|---|---|
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 IStore contains. |
Properties
| Improve this Doc View SourceNetworkExpected
The genesis block that the network expects.
Declaration
public BlockHash NetworkExpected { get; }
Property Value
Type | Description |
---|---|
BlockHash |
Stored
The genesis block that a local IStore contains.
Declaration
public BlockHash Stored { get; }
Property Value
Type | Description |
---|---|
BlockHash |