mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-12 18:49:42 +01:00
gossipd: drive-by correction of new channel announcement evaluation
According to the description, we should be checking the existence of a channel update on the other side here. Changelog-None
This commit is contained in:
parent
b327bd30c3
commit
80d666b951
1 changed files with 3 additions and 3 deletions
|
@ -618,7 +618,7 @@ void gossmap_manage_handle_get_txout_reply(struct gossmap_manage *gm, const u8 *
|
|||
|
||||
pca = map_del(&gm->pending_ann_map, scid);
|
||||
if (!pca) {
|
||||
/* If we looking specifically for this, we no longer
|
||||
/* If we were looking specifically for this, we no longer
|
||||
* are (but don't penalize sender: we don't know if it was
|
||||
* good or bad). */
|
||||
remove_unknown_scid(gm->daemon->seeker, &scid, true);
|
||||
|
@ -703,7 +703,7 @@ bad:
|
|||
txout_failures_add(gm->txf, scid);
|
||||
out:
|
||||
tal_free(pca);
|
||||
/* If we looking specifically for this, we no longer are. */
|
||||
/* If we were looking specifically for this, we no longer are. */
|
||||
remove_unknown_scid(gm->daemon->seeker, &scid, false);
|
||||
}
|
||||
|
||||
|
@ -773,7 +773,7 @@ static const char *process_channel_update(const tal_t *ctx,
|
|||
} else {
|
||||
/* Is this the first update in either direction? If so,
|
||||
* rewrite channel_announcement so timestamp is correct. */
|
||||
if (!gossmap_chan_set(chan, dir))
|
||||
if (!gossmap_chan_set(chan, !dir))
|
||||
gossip_store_set_timestamp(gm->daemon->gs, chan->cann_off, timestamp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue