From 74841ef567c54b9b35379c00b477e80f089eb3d4 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 21 Feb 2018 16:55:16 +0100 Subject: [PATCH] Remove unused parameter payment_hash in forward_htlc(..., const struct sha256 *payment_hash, ...) --- lightningd/peer_htlcs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lightningd/peer_htlcs.c b/lightningd/peer_htlcs.c index 7c3250e14..ef5b64dbb 100644 --- a/lightningd/peer_htlcs.c +++ b/lightningd/peer_htlcs.c @@ -417,7 +417,6 @@ enum onion_type send_htlc_out(struct channel *out, u64 amount, u32 cltv, static void forward_htlc(struct htlc_in *hin, u32 cltv_expiry, - const struct sha256 *payment_hash, u64 amt_to_forward, u32 outgoing_cltv_value, const struct pubkey *next_hop, @@ -543,7 +542,7 @@ static void channel_resolve_reply(struct subd *gossip, const u8 *msg, peer_id = &nodes[0]; } - forward_htlc(gr->hin, gr->hin->cltv_expiry, &gr->hin->payment_hash, + forward_htlc(gr->hin, gr->hin->cltv_expiry, gr->amt_to_forward, gr->outgoing_cltv_value, peer_id, gr->next_onion); tal_free(gr);