mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 23:04:35 +01:00
lightningd: partial BOLT update.
Not the new onion stuff for now. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
dc7b832e83
commit
961987b046
@@ -351,7 +351,7 @@ static u8 *open_channel(struct state *state,
|
||||
|
||||
/* BOLT #2:
|
||||
*
|
||||
* This message introduces the `channel-id` which identifies , which
|
||||
* This message introduces the `channel-id` to identify the channel, which
|
||||
* is derived from the funding transaction by combining the
|
||||
* `funding-txid` and the `funding-output-index` using big-endian
|
||||
* exclusive-OR (ie. `funding-output-index` alters the last two
|
||||
@@ -590,8 +590,8 @@ static u8 *recv_channel(struct state *state,
|
||||
|
||||
/* BOLT #2:
|
||||
*
|
||||
* This message introduces the `channel-id` which identifies , which
|
||||
* is derived from the funding transaction by combining the
|
||||
* This message introduces the `channel-id` to identify the channel,
|
||||
* which is derived from the funding transaction by combining the
|
||||
* `funding-txid` and the `funding-output-index` using big-endian
|
||||
* exclusive-OR (ie. `funding-output-index` alters the last two
|
||||
* bytes).
|
||||
|
||||
@@ -674,8 +674,10 @@ static void handle_localpay(struct htlc_end *hend,
|
||||
/* BOLT #4:
|
||||
*
|
||||
* If the amount paid is less than the amount expected, the final node
|
||||
* MUST fail the HTLC. If the amount paid is more than the amount
|
||||
* expected, the final node SHOULD fail the HTLC:
|
||||
* MUST fail the HTLC. If the amount paid is more than twice the
|
||||
* amount expected, the final node SHOULD fail the HTLC. This allows
|
||||
* the sender to reduce information leakage by altering the amount,
|
||||
* without allowing accidental gross overpayment:
|
||||
*
|
||||
* 1. type: PERM|16 (`incorrect_payment_amount`)
|
||||
*/
|
||||
|
||||
@@ -182,7 +182,7 @@ REGISTER_TYPE_TO_HEXSTR(channel_id);
|
||||
|
||||
/* BOLT #2:
|
||||
*
|
||||
* This message introduces the `channel-id` which identifies , which is
|
||||
* This message introduces the `channel-id` to identify the channel, which is
|
||||
* derived from the funding transaction by combining the `funding-txid` and
|
||||
* the `funding-output-index` using big-endian exclusive-OR
|
||||
* (ie. `funding-output-index` alters the last two bytes).
|
||||
|
||||
Reference in New Issue
Block a user