mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-19 13:54:24 +01:00
spec: update to experimental BOLTs with secret/total_amount.
Also pulls in a new onion error (mpp_timeout). We change our route_step_decode_end() to always return the total_msat and optional secret. We check total_amount (to prohibit mpp), but we do nothing with secret for now other than hand it to the htlc_accepted hook. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -631,6 +631,8 @@ For detailed information about each field please refer to [BOLT 04 of the specif
|
||||
and should match the incoming funds in case we are the recipient.
|
||||
- `outgoing_cltv_value` determines what the CLTV value for the HTLC that we
|
||||
forward to the next hop should be.
|
||||
- `total_msat` specifies the total amount to pay, if present.
|
||||
- `payment_secret` specifies the payment secret (which the payer should have obtained from the invoice), if present.
|
||||
- `next_onion` is the fully processed onion that we should be sending to the
|
||||
next hop as part of the outgoing HTLC. Processed in this case means that we
|
||||
took the incoming onion, decrypted it, extracted the payload destined for
|
||||
|
||||
Reference in New Issue
Block a user