Skip to content

Commit d1c20ed

Browse files
committed
Use test blocks from database.
1 parent f8e9b35 commit d1c20ed

12 files changed

Lines changed: 542 additions & 60 deletions

File tree

test/protocols/bitcoind/bitcoind.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <future>
2323

2424
bitcoind_setup_fixture::bitcoind_setup_fixture()
25-
: config_{ system::chain::selection::mainnet, web_pages, web_pages },
25+
: config_{ system::chain::selection::mainnet, test::web_pages, test::web_pages },
2626
store_
2727
{
2828
[&]() NOEXCEPT -> const database::settings&
@@ -53,7 +53,7 @@ bitcoind_setup_fixture::bitcoind_setup_fixture()
5353

5454
// Create and populate the store.
5555
BOOST_REQUIRE_MESSAGE(!ec, ec.message());
56-
BOOST_REQUIRE_MESSAGE(setup_ten_block_store(query_), "bitcoind initialize");
56+
BOOST_REQUIRE_MESSAGE(test::setup_ten_block_store(query_), "bitcoind initialize");
5757

5858
// Run the server.
5959
std::promise<code> running{};

test/protocols/bitcoind/bitcoind.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ struct bitcoind_setup_fixture
3838

3939
protected:
4040
configuration config_;
41-
store_t store_;
42-
query_t query_;
41+
test::store_t store_;
42+
test::query_t query_;
4343

4444
private:
4545
network::logger log_;

0 commit comments

Comments
 (0)