Skip to content

Commit

Permalink
Reopen ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Nov 6, 2023
1 parent e730fd9 commit 8cc171c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nano/nano_node/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<nano::node> (io_ctx, data_path, config.node, opencl_work, flags));
if (!node->init_error ())
Expand Down

0 comments on commit 8cc171c

Please sign in to comment.