From 8cc171c94fcf1675ef7b0cdf9cba2747b9099a4d Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Mon, 6 Nov 2023 18:00:26 +0000 Subject: [PATCH] Reopen ledger --- nano/nano_node/daemon.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nano/nano_node/daemon.cpp b/nano/nano_node/daemon.cpp index aed3cb968a..2a54c4824e 100644 --- a/nano/nano_node/daemon.cpp +++ b/nano/nano_node/daemon.cpp @@ -130,6 +130,8 @@ void nano_daemon::daemon::run (std::filesystem::path const & data_path, nano::no { 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 ())