mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
gossip: Set announce timeout to 5 hours
This commit is contained in:
committed by
Rusty Russell
parent
71a18fdd2e
commit
5ce1f7c2f3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user