Skip to content

Commit

Permalink
Remove peer store of UDP peers
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Silva authored and thsfs committed Feb 15, 2023
1 parent 3449634 commit b9685ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nano/node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,8 +893,7 @@ void nano::node::ongoing_bootstrap ()

void nano::node::ongoing_peer_store ()
{
const bool stored (network.tcp_channels.store_all (true));
network.udp_channels.store_all (!stored);
const bool stored{ network.tcp_channels.store_all (true) };
std::weak_ptr<nano::node> node_w (shared_from_this ());
workers.add_timed_task (std::chrono::steady_clock::now () + network_params.network.peer_dump_interval, [node_w] () {
if (auto node_l = node_w.lock ())
Expand Down

0 comments on commit b9685ed

Please sign in to comment.