Move ascending bootstrap classes to node/bootstrap/

This commit is contained in:
Piotr Wójcik 2024-10-29 14:18:37 +01:00
commit 94e24fa7e8
22 changed files with 39 additions and 37 deletions

View file

@ -2,7 +2,8 @@
#include <nano/lib/logging.hpp>
#include <nano/lib/stats.hpp>
#include <nano/lib/tomlconfig.hpp>
#include <nano/node/bootstrap_ascending/service.hpp>
#include <nano/node/bootstrap/database_scan.hpp>
#include <nano/node/bootstrap/service.hpp>
#include <nano/node/make_store.hpp>
#include <nano/secure/ledger.hpp>
#include <nano/secure/ledger_set_any.hpp>

View file

@ -1,4 +1,4 @@
#include <nano/node/bootstrap_ascending/throttle.hpp>
#include <nano/node/bootstrap/throttle.hpp>
#include <gtest/gtest.h>

View file

@ -24,23 +24,23 @@ add_library(
blockprocessor.cpp
bootstrap_weights_beta.hpp
bootstrap_weights_live.hpp
bootstrap/account_sets.hpp
bootstrap/account_sets.cpp
bootstrap/bootstrap_config.hpp
bootstrap/bootstrap_config.cpp
bootstrap/bootstrap_server.hpp
bootstrap/bootstrap_server.cpp
bootstrap_ascending/account_sets.hpp
bootstrap_ascending/account_sets.cpp
bootstrap_ascending/database_scan.hpp
bootstrap_ascending/database_scan.cpp
bootstrap_ascending/common.hpp
bootstrap_ascending/frontier_scan.hpp
bootstrap_ascending/frontier_scan.cpp
bootstrap_ascending/throttle.hpp
bootstrap_ascending/throttle.cpp
bootstrap_ascending/peer_scoring.hpp
bootstrap_ascending/peer_scoring.cpp
bootstrap_ascending/service.hpp
bootstrap_ascending/service.cpp
bootstrap/common.hpp
bootstrap/throttle.hpp
bootstrap/throttle.cpp
bootstrap/database_scan.hpp
bootstrap/database_scan.cpp
bootstrap/frontier_scan.hpp
bootstrap/frontier_scan.cpp
bootstrap/peer_scoring.hpp
bootstrap/peer_scoring.cpp
bootstrap/service.hpp
bootstrap/service.cpp
cli.hpp
cli.cpp
common.hpp

View file

@ -1,7 +1,7 @@
#include <nano/lib/stats.hpp>
#include <nano/lib/utility.hpp>
#include <nano/node/bootstrap/account_sets.hpp>
#include <nano/node/bootstrap/bootstrap_config.hpp>
#include <nano/node/bootstrap_ascending/account_sets.hpp>
#include <algorithm>
#include <memory>

View file

@ -2,7 +2,8 @@
#include <nano/lib/numbers.hpp>
#include <nano/node/bootstrap/bootstrap_config.hpp>
#include <nano/node/bootstrap_ascending/common.hpp>
#include <nano/node/bootstrap/common.hpp>
#include <nano/node/fwd.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/mem_fun.hpp>

View file

@ -1,6 +1,6 @@
#include <nano/lib/utility.hpp>
#include <nano/node/bootstrap_ascending/crawlers.hpp>
#include <nano/node/bootstrap_ascending/database_scan.hpp>
#include <nano/node/bootstrap/crawlers.hpp>
#include <nano/node/bootstrap/database_scan.hpp>
#include <nano/secure/common.hpp>
#include <nano/secure/ledger.hpp>
#include <nano/secure/ledger_set_any.hpp>

View file

@ -1,4 +1,4 @@
#include <nano/node/bootstrap_ascending/frontier_scan.hpp>
#include <nano/node/bootstrap/frontier_scan.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <boost/multiprecision/cpp_int.hpp>

View file

@ -1,7 +1,7 @@
#pragma once
#include <nano/node/bootstrap/bootstrap_config.hpp>
#include <nano/node/bootstrap_ascending/common.hpp>
#include <nano/node/bootstrap/common.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/mem_fun.hpp>

View file

@ -1,5 +1,5 @@
#include <nano/node/bootstrap/bootstrap_config.hpp>
#include <nano/node/bootstrap_ascending/peer_scoring.hpp>
#include <nano/node/bootstrap/peer_scoring.hpp>
#include <nano/node/transport/channel.hpp>
/*

View file

@ -3,8 +3,8 @@
#include <nano/lib/stats_enums.hpp>
#include <nano/lib/thread_roles.hpp>
#include <nano/node/blockprocessor.hpp>
#include <nano/node/bootstrap_ascending/crawlers.hpp>
#include <nano/node/bootstrap_ascending/service.hpp>
#include <nano/node/bootstrap/crawlers.hpp>
#include <nano/node/bootstrap/service.hpp>
#include <nano/node/network.hpp>
#include <nano/node/nodeconfig.hpp>
#include <nano/node/transport/transport.hpp>

View file

@ -7,14 +7,14 @@
#include <nano/lib/random.hpp>
#include <nano/lib/rate_limiting.hpp>
#include <nano/lib/thread_pool.hpp>
#include <nano/lib/timer.hpp>
#include <nano/node/bootstrap/account_sets.hpp>
#include <nano/node/bootstrap/bootstrap_config.hpp>
#include <nano/node/bootstrap_ascending/account_sets.hpp>
#include <nano/node/bootstrap_ascending/common.hpp>
#include <nano/node/bootstrap_ascending/database_scan.hpp>
#include <nano/node/bootstrap_ascending/frontier_scan.hpp>
#include <nano/node/bootstrap_ascending/peer_scoring.hpp>
#include <nano/node/bootstrap_ascending/throttle.hpp>
#include <nano/node/bootstrap/common.hpp>
#include <nano/node/bootstrap/database_scan.hpp>
#include <nano/node/bootstrap/frontier_scan.hpp>
#include <nano/node/bootstrap/peer_scoring.hpp>
#include <nano/node/bootstrap/throttle.hpp>
#include <nano/node/fwd.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/member.hpp>

View file

@ -1,5 +1,5 @@
#include <nano/lib/utility.hpp>
#include <nano/node/bootstrap_ascending/throttle.hpp>
#include <nano/node/bootstrap/throttle.hpp>
nano::bootstrap_ascending::throttle::throttle (std::size_t size) :
successes_m{ size }

View file

@ -4,7 +4,7 @@
#include <nano/lib/stats_sinks.hpp>
#include <nano/lib/timer.hpp>
#include <nano/node/active_elections.hpp>
#include <nano/node/bootstrap_ascending/service.hpp>
#include <nano/node/bootstrap/service.hpp>
#include <nano/node/common.hpp>
#include <nano/node/confirming_set.hpp>
#include <nano/node/election.hpp>

View file

@ -1,5 +1,5 @@
#include <nano/lib/thread_roles.hpp>
#include <nano/node/bootstrap_ascending/service.hpp>
#include <nano/node/bootstrap/service.hpp>
#include <nano/node/message_processor.hpp>
#include <nano/node/node.hpp>
#include <nano/node/telemetry.hpp>

View file

@ -2,7 +2,7 @@
#include <nano/lib/blocks.hpp>
#include <nano/lib/threading.hpp>
#include <nano/lib/utility.hpp>
#include <nano/node/bootstrap_ascending/service.hpp>
#include <nano/node/bootstrap/service.hpp>
#include <nano/node/message_processor.hpp>
#include <nano/node/network.hpp>
#include <nano/node/node.hpp>

View file

@ -7,7 +7,7 @@
#include <nano/node/active_elections.hpp>
#include <nano/node/backlog_population.hpp>
#include <nano/node/bandwidth_limiter.hpp>
#include <nano/node/bootstrap_ascending/service.hpp>
#include <nano/node/bootstrap/service.hpp>
#include <nano/node/bootstrap_weights_beta.hpp>
#include <nano/node/bootstrap_weights_live.hpp>
#include <nano/node/common.hpp>

View file

@ -1,7 +1,7 @@
#include <nano/lib/rpcconfig.hpp>
#include <nano/lib/thread_runner.hpp>
#include <nano/node/bootstrap/bootstrap_server.hpp>
#include <nano/node/bootstrap_ascending/service.hpp>
#include <nano/node/bootstrap/service.hpp>
#include <nano/node/ipc/ipc_server.hpp>
#include <nano/node/json_handler.hpp>
#include <nano/node/transport/transport.hpp>