mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
common: update to latest route-blinding spec.
``` make check-source-bolt CHECK_BOLT_PREFIX="--prefix=BOLT-route-blinding" BOLTVERSION=guilt/offers ``` Other than textual changes, this does: 1. Ensures we put total_amount_msat in onion final hop (reported by @t-bast). 2. Require that they put total_amount_msat in onion final hop. 3. Return `invalid_onion_blinding` exactly as defined by the spec (i.e. less aggressive when we're the final hop) (also reported by @t-bast, but I already knew). See: #5823 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-EXPERIMENTAL: `offers` breaking blinded payments change (total_amount_sat required, Eclair compat)
This commit is contained in:
@@ -53,8 +53,9 @@ u8 *onion_final_hop(const tal_t *ctx,
|
||||
* generic interface, as used by blindedpay.h */
|
||||
u8 *onion_blinded_hop(const tal_t *ctx,
|
||||
const struct amount_msat *amt_to_forward,
|
||||
const struct amount_msat *total_amount_msat,
|
||||
const u32 *outgoing_cltv_value,
|
||||
const u8 *enctlv,
|
||||
const struct pubkey *blinding)
|
||||
NON_NULL_ARGS(4);
|
||||
NON_NULL_ARGS(5);
|
||||
#endif /* LIGHTNING_COMMON_ONION_ENCODE_H */
|
||||
|
||||
Reference in New Issue
Block a user