Skip to content

Commit 58e1428

Browse files
committed
BOLTs: Add typo fixes and clarifications from "More clarifications around channel_announcement handling (ElementsProject#1220)"
Signed-off-by: Rusty Russell <[email protected]>
1 parent 67c91a7 commit 58e1428

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

common/gossip_constants.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
#define ROUTING_OPT_HTLC_MAX_MSAT (1 << 0)
3030
#define ROUTING_OPT_DONT_FORWARD (1 << 1)
3131

32-
/* This quote comes in a later version: mark it out temporarily */
33-
/* BOLT-FIXME #7:
32+
/* BOLT #7:
3433
*
3534
* - If the funding transaction has less than 6 confirmations:
3635
* - MUST NOT send `channel_announcement`.

lightningd/channel_gossip.c

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ static void stash_remote_announce_sigs(struct channel *channel,
397397
const char *err;
398398

399399
/* BOLT #7:
400-
* - if the `node_signature` OR the `bitcoin_signature` is NOT correct:
400+
* - If the `node_signature` OR the `bitcoin_signature` is NOT correct:
401401
* - MAY send a `warning` and close the connection, or send an
402402
* `error` and fail the channel.
403403
*/
@@ -680,10 +680,13 @@ void channel_gossip_got_announcement_sigs(struct channel *channel,
680680
return;
681681
case CGOSSIP_ANNOUNCED:
682682
/* BOLT #7:
683-
* - upon reconnection (once the above timing requirements
683+
* - Upon reconnection (once the above timing requirements
684684
* have been met):
685-
* - MUST respond to the first `announcement_signatures`
686-
* message with its own `announcement_signatures` message.
685+
*...
686+
* - If it receives `announcement_signatures` for the
687+
* funding transaction:
688+
* - MUST respond with its own `announcement_signatures`
689+
* message.
687690
*/
688691
send_channel_announce_sigs(channel);
689692
check_channel_gossip(channel);
@@ -912,13 +915,11 @@ void channel_gossip_channel_reestablished(struct channel *channel)
912915
return;
913916
case CGOSSIP_NEED_PEER_SIGS:
914917
/* BOLT #7:
915-
* - upon reconnection (once the above timing
916-
* requirements have been met):
917-
* ...
918-
* - if it has NOT received an
919-
* `announcement_signatures` message:
920-
* - SHOULD retransmit the
921-
* `announcement_signatures` message.
918+
* - Upon reconnection (once the above timing requirements have
919+
* been met):
920+
* - If it has NOT previously received
921+
* `announcement_signatures` for the funding transaction:
922+
* - MUST send its own `announcement_signatures` message.
922923
*/
923924
send_private_cupdate(channel, true);
924925
send_channel_announce_sigs(channel);

0 commit comments

Comments
 (0)