mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user