When we receive a new public key, we should immediately call
node_write_config() to ensure it gets saved if the storage policy is
KEYS_ONLY.
logger(mesh, MESHLINK_INFO, "Learned ECDSA public key from %s", from->name);
from->status.dirty = true;
+ if(!node_write_config(mesh, from, true)) {
+ // ignore
+ }
+
/* If we are trying to form an outgoing connection to this node, retry immediately */
for list_each(outgoing_t, outgoing, mesh->outgoings) {
if(outgoing->node == from && outgoing->ev.cb) {