channeld, lightningd: allow blinded payments with !EXPERIMENTAL_FEATURES.

Gate it (where necessary) by the route-blinding feature bit.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-10-17 11:14:39 +10:30
parent 426886ff9b
commit 8eee5dd7fd
5 changed files with 23 additions and 62 deletions

View File

@@ -680,37 +680,21 @@ static void *towire_struct_update_add_htlc(const tal_t *ctx,
s->amount_msat,
&s->payment_hash,
s->expiry,
s->onion_routing_packet
#if EXPERIMENTAL_FEATURES
,NULL
#endif
);
s->onion_routing_packet, NULL);
}
static struct msg_update_add_htlc *fromwire_struct_update_add_htlc(const tal_t *ctx, const void *p)
{
struct msg_update_add_htlc *s = tal(ctx, struct msg_update_add_htlc);
if (fromwire_update_add_htlc
#if EXPERIMENTAL_FEATURES
(s, p,
if (fromwire_update_add_htlc(s, p,
&s->channel_id,
&s->id,
&s->amount_msat,
&s->payment_hash,
&s->expiry,
s->onion_routing_packet,
&s->tlvs
#else
(p,
&s->channel_id,
&s->id,
&s->amount_msat,
&s->payment_hash,
&s->expiry,
s->onion_routing_packet
#endif
))
&s->tlvs))
return s;
return tal_free(s);
}