Skip to content

Commit d200a12

Browse files
committed
Use network id to indicate testnet genesis block for initichain.
1 parent a90c179 commit d200a12

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

console/executor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ bool executor::do_initchain()
120120
{
121121
LOG_INFO(LOG_NODE) << format(BN_INITIALIZING_CHAIN) % directory;
122122

123-
const auto testnet = metadata_.configured.chain.easy_blocks;
124-
125123
// Unfortunately we are limited to a choice of hardcoded chains.
124+
auto testnet = (metadata_.configured.network.identifier == 118034699u);
126125
const auto genesis = testnet ? block::genesis_testnet() :
127126
block::genesis_mainnet();
128127

0 commit comments

Comments
 (0)