diff --git a/nano/node/node.cpp b/nano/node/node.cpp index 30a088143..eb3d42e2e 100644 --- a/nano/node/node.cpp +++ b/nano/node/node.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -195,7 +196,8 @@ nano::node::node (std::shared_ptr io_ctx_a, std::filesy aggregator_impl{ std::make_unique (config.request_aggregator, *this, stats, generator, final_generator, history, ledger, wallets, vote_router) }, aggregator{ *aggregator_impl }, wallets (wallets_store.init_error (), *this), - backlog{ config.backlog_population, scheduler, ledger, stats }, + backlog_impl{ std::make_unique (config.backlog_population, scheduler, ledger, stats) }, + backlog{ *backlog_impl }, ascendboot_impl{ std::make_unique (config, block_processor, ledger, network, stats, logger) }, ascendboot{ *ascendboot_impl }, websocket{ config.websocket_config, observers, wallets, ledger, io_ctx, logger }, diff --git a/nano/node/node.hpp b/nano/node/node.hpp index 15d6e96e4..1f44b8031 100644 --- a/nano/node/node.hpp +++ b/nano/node/node.hpp @@ -6,7 +6,6 @@ #include #include #include -#include #include #include #include @@ -41,6 +40,7 @@ namespace nano { class active_elections; +class backlog_population; class confirming_set; class message_processor; class monitor; @@ -208,7 +208,8 @@ public: std::unique_ptr aggregator_impl; nano::request_aggregator & aggregator; nano::wallets wallets; - nano::backlog_population backlog; + std::unique_ptr backlog_impl; + nano::backlog_population & backlog; std::unique_ptr ascendboot_impl; nano::bootstrap_ascending::service & ascendboot; nano::websocket_server websocket;