Remove peer store of UDP peers
This commit is contained in:
parent
3449634fac
commit
b9685ed8e4
1 changed files with 1 additions and 2 deletions
|
|
@ -893,8 +893,7 @@ void nano::node::ongoing_bootstrap ()
|
||||||
|
|
||||||
void nano::node::ongoing_peer_store ()
|
void nano::node::ongoing_peer_store ()
|
||||||
{
|
{
|
||||||
const bool stored (network.tcp_channels.store_all (true));
|
const bool stored{ network.tcp_channels.store_all (true) };
|
||||||
network.udp_channels.store_all (!stored);
|
|
||||||
std::weak_ptr<nano::node> node_w (shared_from_this ());
|
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] () {
|
workers.add_timed_task (std::chrono::steady_clock::now () + network_params.network.peer_dump_interval, [node_w] () {
|
||||||
if (auto node_l = node_w.lock ())
|
if (auto node_l = node_w.lock ())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue