common: don't pass (unused) has_realm parameter to process_onionpacket.

This was when we handled pre-TLV onions where the first byte was 0.  We haven't
done that for a while: you can tell, because process_onionpacket doesn't use
the parameter at all!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-07-09 18:07:44 +09:30
committed by Vincenzo Palazzo
parent f64d48e716
commit 4647f3c2a3
8 changed files with 8 additions and 14 deletions

View File

@@ -1337,7 +1337,7 @@ static bool peer_accepted_htlc(const tal_t *ctx,
rs = process_onionpacket(tmpctx, op, hin->shared_secret,
hin->payment_hash.u.u8,
sizeof(hin->payment_hash), true);
sizeof(hin->payment_hash));
if (!rs) {
*badonion = WIRE_INVALID_ONION_HMAC;
log_debug(channel->log,