From abe7133bd5b17d88d1ed3f3ccd5737932bae3de1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 6 Nov 2019 12:46:09 +1030 Subject: [PATCH] gossipd: use in_txout_failures to do lookup in channel_announcement. This correctly refreshes the txout entry against aging. Signed-off-by: Rusty Russell --- gossipd/routing.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index dc89b2a60..18b3cc7be 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -1721,9 +1721,8 @@ u8 *handle_channel_announcement(struct routing_state *rstate, } /* If a prior txout lookup failed there is little point it trying - * again. Just drop the announcement and walk away whistling. Any non-0 - * result means this failed before. */ - if (uintmap_get(&rstate->txout_failures, pending->short_channel_id.u64)) { + * again. Just drop the announcement and walk away whistling. */ + if (in_txout_failures(rstate, &pending->short_channel_id)) { SUPERVERBOSE( "Ignoring channel_announcement of %s due to a prior txout " "query failure. The channel was likely closed on-chain.",