diff --git a/src/configuration.cpp b/src/configuration.cpp index dfe0e549..f7f4500c 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -80,6 +80,7 @@ code configuration::initialize() NOEXCEPT network.identifier = system::from_little_endian(hash); } + bitcoin.initialize(); database.initialize(bitcoin, node.limited_blocks, node.silent_start_height); return network.initialize(); } diff --git a/src/settings.cpp b/src/settings.cpp index ffa2540b..61d31ad0 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -79,6 +79,7 @@ settings::settings(chain::selection context) NOEXCEPT } case chain::selection::testnet4: + case chain::selection::testnet5: { maximum_concurrency = 100'000; break; diff --git a/test/settings.cpp b/test/settings.cpp index 075f1bad..4cbab0ea 100644 --- a/test/settings.cpp +++ b/test/settings.cpp @@ -106,6 +106,14 @@ BC_AUTO_TEST_CASE(settings__node__testnet4_context__expected) BC_REQUIRE_EQUAL(node.batch_verify, 1'000'000_u64); } +BC_AUTO_TEST_CASE(settings__node__testnet5_context__expected) +{ + const node::settings node{ system::chain::selection::testnet5 }; + BC_REQUIRE(node.network == system::chain::selection::testnet5); + BC_REQUIRE_EQUAL(node.maximum_concurrency, 100'000_u32); + BC_REQUIRE_EQUAL(node.batch_verify, 1'000'000_u64); +} + BC_AUTO_TEST_CASE(settings__node__regtest_context__expected) { const node::settings node{ system::chain::selection::regtest };