mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +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:
parent
9be6ed6236
commit
45cdfd2ff7
4 changed files with 7 additions and 9 deletions
2
Makefile
2
Makefile
|
@ -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)
|
||||
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue