Skip to content

Commit

Permalink
doc: upgrade to BOLTs 2ecc091f3484f7a3450e7f5543ae851edd1e0761
Browse files Browse the repository at this point in the history
I disagree with this change, so I've commented and added a FIXME.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Sep 12, 2022
1 parent 5b7f14a commit b208c0d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CCANDIR := ccan

# Where we keep the BOLT RFCs
BOLTDIR := ../bolts/
DEFAULT_BOLTVERSION := bc86304b4b0af5fd5ce9d24f74e2ebbceb7e2730
DEFAULT_BOLTVERSION := 2ecc091f3484f7a3450e7f5543ae851edd1e0761
# Can be overridden on cmdline.
BOLTVERSION := $(DEFAULT_BOLTVERSION)

Expand Down
2 changes: 1 addition & 1 deletion common/gossip_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
/* BOLT #7:
*
* A node:
* - if a channel's oldest `channel_update`s `timestamp` is older than two weeks
* - if a channel's latest `channel_update`s `timestamp` is older than two weeks
* (1209600 seconds):
* - MAY prune the channel.
* - MAY ignore the channel.
Expand Down
2 changes: 1 addition & 1 deletion gossipd/gossipd.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ static struct io_plan *connectd_req(struct io_conn *conn,
/* BOLT #7:
*
* A node:
* - if a channel's oldest `channel_update`s `timestamp` is older than two weeks
* - if a channel's latest `channel_update`s `timestamp` is older than two weeks
* (1209600 seconds):
* - MAY prune the channel.
* - MAY ignore the channel.
Expand Down
4 changes: 3 additions & 1 deletion gossipd/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1926,10 +1926,12 @@ void route_prune(struct routing_state *rstate)
continue;

/* BOLT #7:
* - if a channel's oldest `channel_update`s `timestamp` is
* - if a channel's latest `channel_update`s `timestamp` 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
Expand Down

0 comments on commit b208c0d

Please sign in to comment.