update seeds before returning no

pull/2232/head
dr7ana 5 months ago
parent 8bdfb206c2
commit fcbfc1919d

@ -1 +1 @@
Subproject commit 921a85852a12510d374e1042d983e98f40f07689
Subproject commit 3ace46701449c4c01f74aae2e0be3b4164768911

@ -684,6 +684,11 @@ namespace llarp
auto& src = is_seed ? node_db->bootstrap_seeds() : node_db->get_known_rcs();
auto count = src.size();
if (is_seed)
node_db->bootstrap_seeds().insert(remote);
else
node_db->put_rc(remote);
if (count == 0)
{
@ -710,10 +715,6 @@ namespace llarp
}
}
if (is_seed)
node_db->bootstrap_seeds().insert(remote);
else
node_db->put_rc(remote);
m.respond(std::move(btdp).str());
}

Loading…
Cancel
Save