mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
configure option --enable-liquid for default liquidv1 chain
This commit is contained in:
parent
a32cd1d363
commit
7eea59a2ca
3 changed files with 23 additions and 2 deletions
12
configure.ac
12
configure.ac
|
|
@ -194,10 +194,20 @@ AC_ARG_ENABLE([asm],
|
|||
[use_asm=$enableval],
|
||||
[use_asm=yes])
|
||||
|
||||
AC_ARG_ENABLE([liquid],
|
||||
[AS_HELP_STRING([--enable-liquid],
|
||||
[Enable build that defaults to -chain=liquidv1])],
|
||||
[liquid_build=yes],
|
||||
[liquid_build=no])
|
||||
|
||||
if test "x$use_asm" = xyes; then
|
||||
AC_DEFINE(USE_ASM, 1, [Define this symbol to build in assembly routines])
|
||||
fi
|
||||
|
||||
if test "x$liquid_build" = xyes; then
|
||||
AC_DEFINE(LIQUID, 1, [Define this symbol for Liquid builds])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH([system-univalue],
|
||||
[AS_HELP_STRING([--with-system-univalue],
|
||||
[Build with system UniValue (default is no)])],
|
||||
|
|
@ -1378,6 +1388,7 @@ AM_CONDITIONAL([ENABLE_SSE41],[test x$enable_sse41 = xyes])
|
|||
AM_CONDITIONAL([ENABLE_AVX2],[test x$enable_avx2 = xyes])
|
||||
AM_CONDITIONAL([ENABLE_SHANI],[test x$enable_shani = xyes])
|
||||
AM_CONDITIONAL([USE_ASM],[test x$use_asm = xyes])
|
||||
AM_CONDITIONAL([LIQUID],[test x$liquid_build = xyes])
|
||||
|
||||
AC_DEFINE(CLIENT_VERSION_MAJOR, _CLIENT_VERSION_MAJOR, [Major version])
|
||||
AC_DEFINE(CLIENT_VERSION_MINOR, _CLIENT_VERSION_MINOR, [Minor version])
|
||||
|
|
@ -1510,6 +1521,7 @@ echo " with test = $use_tests"
|
|||
echo " with bench = $use_bench"
|
||||
echo " with upnp = $use_upnp"
|
||||
echo " use asm = $use_asm"
|
||||
echo " liquid_build = $liquid_build"
|
||||
echo " sanitizers = $use_sanitizers"
|
||||
echo " debug enabled = $enable_debug"
|
||||
echo " gprof enabled = $enable_gprof"
|
||||
|
|
|
|||
|
|
@ -558,7 +558,11 @@ BOOST_AUTO_TEST_CASE(util_GetChainName)
|
|||
std::string error;
|
||||
|
||||
test_args.ParseParameters(0, (char**)argv_testnet, error);
|
||||
BOOST_CHECK_EQUAL(test_args.GetChainName(), "elementsregtest");
|
||||
std::string default_chain = "elementsregtest";
|
||||
#if LIQUID
|
||||
default_chain = "liquidv1";
|
||||
#endif
|
||||
BOOST_CHECK_EQUAL(test_args.GetChainName(), default_chain);
|
||||
|
||||
test_args.ParseParameters(2, (char**)argv_testnet, error);
|
||||
BOOST_CHECK_EQUAL(test_args.GetChainName(), "test");
|
||||
|
|
|
|||
|
|
@ -980,7 +980,12 @@ std::string ArgsManager::GetChainName() const
|
|||
return CBaseChainParams::REGTEST;
|
||||
if (fTestNet)
|
||||
return CBaseChainParams::TESTNET;
|
||||
return GetArg("-chain", "elementsregtest");
|
||||
|
||||
std::string default_chain = "elementsregtest";
|
||||
#ifdef LIQUID
|
||||
default_chain = "liquidv1";
|
||||
#endif
|
||||
return GetArg("-chain", default_chain);
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue