BOLT: update to latest version.

This is all typo/clarity fixes, no substantive changes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2020-03-31 09:08:58 +10:30 committed by Christian Decker
parent a430abf899
commit d881a4bd66
8 changed files with 12 additions and 10 deletions

View file

@ -15,7 +15,7 @@ CCANDIR := ccan
# Where we keep the BOLT RFCs
BOLTDIR := ../lightning-rfc/
BOLTVERSION := 17df7f2bba4dab844569c3305201606dee800741
BOLTVERSION := 4107c69e315b4f33d5b00459bef919bcfaa64bf2
-include config.vars

View file

@ -19,8 +19,8 @@ STRUCTEQ_DEF(short_channel_id, 0, u64);
/* BOLT #7:
*
* - MUST set `node_id_1` and `node_id_2` to the public keys of the two nodes
* operating the channel, such that `node_id_1` is the numerically-lesser of the
* two DER-encoded keys sorted in ascending numerical order.
* operating the channel, such that `node_id_1` is the lexicographically-lesser of the
* two compressed keys sorted in ascending lexicographic order.
*...
* - if the origin node is `node_id_1` in the message:
* - MUST set the `direction` bit of `channel_flags` to 0.

View file

@ -1040,7 +1040,7 @@ char *bolt11_encode_(const tal_t *ctx,
* - if a specific minimum `amount` is required for successful payment:
* - MUST include that `amount`.
* - MUST encode `amount` as a positive decimal integer with no leading 0s.
* - If the `p` multiplier is used the `amount` the last decimal MUST be `0`.
* - If the `p` multiplier is used the last decimal of `amount` MUST be `0`.
* - SHOULD use the shortest representation possible, by using the largest multiplier or omitting the multiplier.
*/
if (b11->msat) {

View file

@ -34,6 +34,7 @@ void gossip_setup_timestamp_filter(struct per_peer_state *pps,
* equal to `first_timestamp`, and less than `first_timestamp` plus
* `timestamp_range`.
* - MAY wait for the next outgoing gossip flush to send these.
* ...
* - SHOULD restrict future gossip messages to those whose `timestamp`
* is greater or equal to `first_timestamp`, and less than
* `first_timestamp` plus `timestamp_range`.

View file

@ -425,11 +425,11 @@ static struct handshake *new_handshake(const tal_t *ctx,
* into the handshake digest:
*
* * The initiating node mixes in the responding node's static public
* key serialized in Bitcoin's DER-compressed format:
* key serialized in Bitcoin's compressed format:
* * `h = SHA-256(h || rs.pub.serializeCompressed())`
*
* * The responding node mixes in their local static public key
* serialized in Bitcoin's DER-compressed format:
* serialized in Bitcoin's compressed format:
* * `h = SHA-256(h || ls.pub.serializeCompressed())`
*/
sha_mix_in_key(&handshake->h, responder_id);

View file

@ -613,7 +613,8 @@ static struct io_plan *connectd_new_peer(struct io_conn *conn,
*
* A node:
* - if the `gossip_queries` feature is negotiated:
* - MUST NOT relay any gossip messages unless explicitly requested.
* - MUST NOT relay any gossip messages it did not generate itself,
* unless explicitly requested.
*/
if (peer->gossip_queries_feature) {
gs = NULL;

View file

@ -327,7 +327,7 @@ static void fail_out_htlc(struct htlc_out *hout,
*
* Where `fee` is calculated according to the receiving peer's
* advertised fee schema (as described in [BOLT
* #7](07-routing-gossip.md#htlc-fees).
* #7](07-routing-gossip.md#htlc-fees)).
*/
static bool check_fwd_amount(struct htlc_in *hin,
struct amount_msat amt_to_forward,

View file

@ -561,7 +561,7 @@ static u8 *funder_channel_start(struct state *state, u8 channel_flags)
*...
* - `funding_pubkey`, `revocation_basepoint`, `htlc_basepoint`,
* `payment_basepoint`, or `delayed_payment_basepoint` are not
* valid DER-encoded compressed secp256k1 pubkeys.
* valid secp256k1 pubkeys in compressed format.
*/
if (feature_negotiated(state->features,
OPT_UPFRONT_SHUTDOWN_SCRIPT)) {
@ -902,7 +902,7 @@ static u8 *fundee_channel(struct state *state, const u8 *open_channel_msg)
*...
* - `funding_pubkey`, `revocation_basepoint`, `htlc_basepoint`,
* `payment_basepoint`, or `delayed_payment_basepoint` are not valid
* DER-encoded compressed secp256k1 pubkeys.
* secp256k1 pubkeys in compressed format.
*/
if (feature_negotiated(state->features,
OPT_UPFRONT_SHUTDOWN_SCRIPT)) {