BOLT: update to fix gossip pruning quote.

Which I disagreed with, and has been fixed.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-09-14 12:16:34 +09:30
parent 9be6ed6236
commit 45cdfd2ff7
4 changed files with 7 additions and 9 deletions

View File

@@ -1926,12 +1926,10 @@ void route_prune(struct routing_state *rstate)
continue;
/* BOLT #7:
* - if a channel's latest `channel_update`s `timestamp` is
* older than two weeks (1209600 seconds):
* - if the `timestamp` of the latest `channel_update` in
* either direction is older than two weeks (1209600 seconds):
* - MAY prune the channel.
*/
/* FIXME: I disagree with the above quote: it used to say "oldest", which is what we
use here: */
/* This is a fancy way of saying "both ends must refresh!" */
if (!is_halfchan_defined(&chan->half[0])
|| chan->half[0].bcast.timestamp < highwater