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