mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Add DEFAULT chain and set to liquidv1
This fixes f.e. that when arguments are set in CLI or the config file without a network attached (`port` instead of `liquidv1.port`), they will now be assigned to the liquidv1 instead of Bitcoin mainnet.
This commit is contained in:
parent
168fd68bee
commit
3e0f9da0aa
6 changed files with 14 additions and 8 deletions
|
|
@ -16,6 +16,8 @@ const std::string CBaseChainParams::TESTNET = "test";
|
|||
const std::string CBaseChainParams::REGTEST = "regtest";
|
||||
const std::string CBaseChainParams::LIQUID1 = "liquidv1";
|
||||
|
||||
const std::string CBaseChainParams::DEFAULT = CBaseChainParams::LIQUID1;
|
||||
|
||||
void SetupChainParamsBaseOptions()
|
||||
{
|
||||
gArgs.AddArg("-chain=<chain>", "Use the chain <chain> (default: main). Reserved values: main, test, regtest", false, OptionsCategory::CHAINPARAMS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue