From 5ce1f7c2f339d33c9ae2ba121843c8fa656f5573 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 15 Dec 2016 16:44:29 +0100 Subject: [PATCH] gossip: Set announce timeout to 5 hours --- daemon/p2p_announce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/p2p_announce.c b/daemon/p2p_announce.c index d48446eba..50b23faa7 100644 --- a/daemon/p2p_announce.c +++ b/daemon/p2p_announce.c @@ -384,7 +384,7 @@ static void announce(struct lightningd_state *dstate) struct peer *p; int nchan = 0; - new_reltimer(dstate, dstate, time_from_sec(6), announce, dstate); + new_reltimer(dstate, dstate, time_from_sec(5*60*60), announce, dstate); list_for_each(&dstate->peers, p, list) { if (state_is_normal(p->state)) { @@ -419,6 +419,6 @@ static void process_broadcast_queue(struct lightningd_state *dstate) void setup_p2p_announce(struct lightningd_state *dstate) { - new_reltimer(dstate, dstate, time_from_sec(30), announce, dstate); + new_reltimer(dstate, dstate, time_from_sec(5*60*60), announce, dstate); new_reltimer(dstate, dstate, time_from_sec(30), process_broadcast_queue, dstate); }