mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
2
Makefile
2
Makefile
@@ -23,7 +23,7 @@ CCANDIR := ccan
|
|||||||
|
|
||||||
# Where we keep the BOLT RFCs
|
# Where we keep the BOLT RFCs
|
||||||
BOLTDIR := ../bolts/
|
BOLTDIR := ../bolts/
|
||||||
DEFAULT_BOLTVERSION := 341ec844f13c0c0abc4fe849059fbb98173f9766
|
DEFAULT_BOLTVERSION := 48fed66e26b80031d898c6492434fa9926237d64
|
||||||
# Can be overridden on cmdline.
|
# Can be overridden on cmdline.
|
||||||
BOLTVERSION := $(DEFAULT_BOLTVERSION)
|
BOLTVERSION := $(DEFAULT_BOLTVERSION)
|
||||||
|
|
||||||
|
|||||||
@@ -62,8 +62,8 @@
|
|||||||
/* BOLT #7:
|
/* BOLT #7:
|
||||||
*
|
*
|
||||||
* A node:
|
* A node:
|
||||||
* - if a channel's latest `channel_update`s `timestamp` is older than two weeks
|
* - if the `timestamp` of the latest `channel_update` in
|
||||||
* (1209600 seconds):
|
* either direction is older than two weeks (1209600 seconds):
|
||||||
* - MAY prune the channel.
|
* - MAY prune the channel.
|
||||||
* - MAY ignore the channel.
|
* - MAY ignore the channel.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -603,8 +603,8 @@ handled:
|
|||||||
/* BOLT #7:
|
/* BOLT #7:
|
||||||
*
|
*
|
||||||
* A node:
|
* A node:
|
||||||
* - if a channel's latest `channel_update`s `timestamp` is older than two weeks
|
* - if the `timestamp` of the latest `channel_update` in
|
||||||
* (1209600 seconds):
|
* either direction is older than two weeks (1209600 seconds):
|
||||||
* - MAY prune the channel.
|
* - MAY prune the channel.
|
||||||
* - MAY ignore the channel.
|
* - MAY ignore the channel.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1926,12 +1926,10 @@ void route_prune(struct routing_state *rstate)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* BOLT #7:
|
/* BOLT #7:
|
||||||
* - if a channel's latest `channel_update`s `timestamp` is
|
* - if the `timestamp` of the latest `channel_update` in
|
||||||
* older than two weeks (1209600 seconds):
|
* either direction is older than two weeks (1209600 seconds):
|
||||||
* - MAY prune the channel.
|
* - 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!" */
|
/* This is a fancy way of saying "both ends must refresh!" */
|
||||||
if (!is_halfchan_defined(&chan->half[0])
|
if (!is_halfchan_defined(&chan->half[0])
|
||||||
|| chan->half[0].bcast.timestamp < highwater
|
|| chan->half[0].bcast.timestamp < highwater
|
||||||
|
|||||||
Reference in New Issue
Block a user