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:
Steven Roose 2020-01-28 15:36:35 +00:00
parent 168fd68bee
commit 3e0f9da0aa
No known key found for this signature in database
GPG key ID: 2F2A88D7F8D68E87
6 changed files with 14 additions and 8 deletions

View file

@ -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);