Skip to content

Commit

Permalink
Warn about fast bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed May 26, 2024
1 parent 8c9f6f5 commit a1aa85b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nano/node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ nano::node::node (std::shared_ptr<boost::asio::io_context> io_ctx_a, std::filesy
std::exit (1);
}
}

confirming_set.cemented_observers.add ([this] (auto const & block) {
if (block->is_send ())
{
Expand All @@ -483,6 +484,11 @@ nano::node::node (std::shared_ptr<boost::asio::io_context> io_ctx_a, std::filesy
});
}
});

if (flags.fast_bootstrap)
{
logger.warn (nano::log::type::node, "Fast bootstrap is enabled, this mode is less secure and should only be used for initial syncronization");
}
}
node_initialized_latch.count_down ();
}
Expand Down

0 comments on commit a1aa85b

Please sign in to comment.