diff options
author | Carl Dong <contact@carldong.me> | 2020-10-14 16:48:17 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-05-27 13:50:11 -0400 |
commit | db33cde80fff749c6adff9e91fca5f27f4bb6278 (patch) | |
tree | 4e994189869837823ae4fde2c65cdbc11cfe7bf6 /src/test/txindex_tests.cpp | |
parent | f4a47a1febfa35ab077f2a841fe31a8cd9618250 (diff) |
index: Add chainstate member to BaseIndex
Diffstat (limited to 'src/test/txindex_tests.cpp')
-rw-r--r-- | src/test/txindex_tests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/txindex_tests.cpp b/src/test/txindex_tests.cpp index 082655d811..d47c54fd6e 100644 --- a/src/test/txindex_tests.cpp +++ b/src/test/txindex_tests.cpp @@ -7,6 +7,7 @@ #include <script/standard.h> #include <test/util/setup_common.h> #include <util/time.h> +#include <validation.h> #include <boost/test/unit_test.hpp> @@ -27,7 +28,7 @@ BOOST_FIXTURE_TEST_CASE(txindex_initial_sync, TestChain100Setup) // BlockUntilSyncedToCurrentChain should return false before txindex is started. BOOST_CHECK(!txindex.BlockUntilSyncedToCurrentChain()); - BOOST_REQUIRE(txindex.Start()); + BOOST_REQUIRE(txindex.Start(::ChainstateActive())); // Allow tx index to catch up with the block index. constexpr int64_t timeout_ms = 10 * 1000; |