Skip to content

Commit 8436710

Browse files
committed
Add unused dynamic genesis block style in chainparams
1 parent f2e3495 commit 8436710

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/chainparams.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,11 @@ class CCustomParams : public CRegTestParams {
618618
if (initialFreeCoins != 0 || initial_reissuance_tokens != 0) {
619619
AppendInitialIssuance(genesis, COutPoint(uint256(commit), 0), parentGenesisBlockHash, (initialFreeCoins > 0) ? 1 : 0, initialFreeCoins, (initial_reissuance_tokens > 0) ? 1 : 0, initial_reissuance_tokens, CScript() << OP_TRUE);
620620
}
621+
} else if (consensus.genesis_style == "dynamic") {
622+
// Liquid v2 HF, from genesis. Upgrading networks still use "elements".
623+
// TODO fill out genesis block with special commitments including epoch
624+
// length in nTime
625+
throw std::runtime_error(strprintf("Invalid -genesis_style (%s)", consensus.genesis_style));
621626
} else {
622627
throw std::runtime_error(strprintf("Invalid -genesis_style (%s)", consensus.genesis_style));
623628
}

0 commit comments

Comments
 (0)