mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge #677: [backport 0.18] Change default chain to liquidv1
118fc3dc0 Change default chain to liquidv1 (Gregory Sanders)
Pull request description:
backport of https://github.com/ElementsProject/elements/pull/675
Tree-SHA512: 1ddd0d61b35020d260ca7e860418211c79159fbfce1422ee5a9aa21bb2bac91ac38d9bc214b7e4b5b0bdd627f60d1c032f68fa8ddbab3fb9dd43f8f4171083b6
This commit is contained in:
commit
751c0771da
2 changed files with 2 additions and 8 deletions
|
|
@ -558,10 +558,7 @@ BOOST_AUTO_TEST_CASE(util_GetChainName)
|
|||
std::string error;
|
||||
|
||||
BOOST_CHECK(test_args.ParseParameters(0, (char**)argv_testnet, error));
|
||||
std::string default_chain = "elementsregtest";
|
||||
#if LIQUID
|
||||
default_chain = "liquidv1";
|
||||
#endif
|
||||
std::string default_chain = "liquidv1";
|
||||
BOOST_CHECK_EQUAL(test_args.GetChainName(), default_chain);
|
||||
|
||||
BOOST_CHECK(test_args.ParseParameters(2, (char**)argv_testnet, error));
|
||||
|
|
|
|||
|
|
@ -1001,10 +1001,7 @@ std::string ArgsManager::GetChainName() const
|
|||
if (fTestNet)
|
||||
return CBaseChainParams::TESTNET;
|
||||
|
||||
std::string default_chain = "elementsregtest";
|
||||
#ifdef LIQUID
|
||||
default_chain = "liquidv1";
|
||||
#endif
|
||||
std::string default_chain = "liquidv1";
|
||||
return GetArg("-chain", default_chain);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue