From f3801cb54311da2c30cbe27cd66559a2ea5daa91 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 10 Jan 2015 23:52:23 +0100 Subject: [PATCH] Proactively send our own key when we request another node's key. --- src/net_packet.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/net_packet.c b/src/net_packet.c index f219287..456b43d 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -1111,6 +1111,11 @@ static void try_tx_sptps(node_t *n) { } static void try_tx_legacy(node_t *n) { + /* Does he have our key? If not, send one. */ + + if(!n->status.validkey_in) + send_ans_key(n); + /* Check if we already have a key, or request one. */ if(!n->status.validkey) { -- 2.25.1