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

@ -23,7 +23,7 @@ CCANDIR := ccan
# Where we keep the BOLT RFCs
BOLTDIR := ../bolts/
DEFAULT_BOLTVERSION := 341ec844f13c0c0abc4fe849059fbb98173f9766
DEFAULT_BOLTVERSION := 48fed66e26b80031d898c6492434fa9926237d64
# Can be overridden on cmdline.
BOLTVERSION := $(DEFAULT_BOLTVERSION)

View File

@ -62,8 +62,8 @@
/* BOLT #7:
*
* A node:
* - 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.
* - MAY ignore the channel.
*/

View File

@ -603,8 +603,8 @@ handled:
/* BOLT #7:
*
* A node:
* - 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.
* - MAY ignore the channel.
*/

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