Skip to content

Commit

Permalink
wallet: fix wallet_forwarded_payment_add to use scid_out arg.
Browse files Browse the repository at this point in the history
We don't need to derive it again, we are handed it now.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Mar 20, 2024
1 parent 77936ce commit 98f491a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallet/wallet.c
Original file line number Diff line number Diff line change
Expand Up @@ -4860,7 +4860,7 @@ void wallet_forwarded_payment_add(struct wallet *w, const struct htlc_in *in,
*channel_scid_or_local_alias(in->key.channel),
in->key.id,
in->msat,
out ? channel_scid_or_local_alias(out->key.channel) : NULL);
scid_out);
id = 0;
goto notify;
}
Expand All @@ -4886,7 +4886,7 @@ void wallet_forwarded_payment_add(struct wallet *w, const struct htlc_in *in,
*channel_scid_or_local_alias(in->key.channel),
in->key.id,
in->msat,
out ? channel_scid_or_local_alias(out->key.channel) : NULL);
scid_out);

db_bind_u64(stmt, id);
db_bind_u64(stmt, in->key.id);
Expand Down

0 comments on commit 98f491a

Please sign in to comment.