diff --git a/nano/nano_node/daemon.cpp b/nano/nano_node/daemon.cpp index 6344fd8e21..2a54c4824e 100644 --- a/nano/nano_node/daemon.cpp +++ b/nano/nano_node/daemon.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -127,6 +128,11 @@ void nano_daemon::daemon::run (std::filesystem::path const & data_path, nano::no config.node.peering_port = network_params.network.default_node_port; } + { + auto store = nano::make_store (logger, data_path, config.node.network_params.ledger); + nano::stats stats; + nano::ledger ledger{ *store, stats, config.node.network_params.ledger }; + } auto node (std::make_shared (io_ctx, data_path, config.node, opencl_work, flags)); if (!node->init_error ()) {