From 33a0af872a0680da829ac0716eb79e65a64128f5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 30 Oct 2023 10:03:40 +1030 Subject: [PATCH] gossipd: never regard our own updates as spam. If we ever re-enabled a channel too fast, if we considered it spam it wouldn't propagate. For the moment, consider our own updates to never be spam. Signed-off-by: Rusty Russell --- gossipd/routing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index 3c930637313f..adedcb6c8b72 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -1471,8 +1471,10 @@ bool routing_add_channel_update(struct routing_state *rstate, } /* Make sure it's not spamming us (private channel - * updates are never considered spam) */ + * updates are never considered spam, nor is anything + * we send ourselves!) */ if (is_chan_public(chan) + && !local_direction(rstate, chan, NULL) && !ratelimit(rstate, &hc->tokens, hc->bcast.timestamp, timestamp)) { status_peer_debug(source_peer,