pay: remove struct pay_command.

It's all in wallet_payment, which is persistent.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-01-18 06:59:49 +10:30
committed by Christian Decker
parent ae1d72b978
commit 02e05ba6ff
8 changed files with 33 additions and 101 deletions

View File

@@ -373,7 +373,6 @@ enum onion_type send_htlc_out(struct peer *out, u64 amount, u32 cltv,
const u8 *onion_routing_packet,
struct htlc_in *in,
struct wallet_payment *payment,
struct pay_command *pc,
struct command *cmd,
struct htlc_out **houtp)
{
@@ -395,7 +394,7 @@ enum onion_type send_htlc_out(struct peer *out, u64 amount, u32 cltv,
/* Make peer's daemon own it, catch if it dies. */
hout = new_htlc_out(out->owner, out, amount, cltv,
payment_hash, onion_routing_packet, in,
pc, payment, cmd);
payment, cmd);
tal_add_destructor(hout, hout_subd_died);
msg = towire_channel_offer_htlc(out, amount, cltv, payment_hash,
@@ -487,7 +486,7 @@ static void forward_htlc(struct htlc_in *hin,
failcode = send_htlc_out(next, amt_to_forward,
outgoing_cltv_value, &hin->payment_hash,
next_onion, hin, NULL, NULL, NULL, NULL);
next_onion, hin, NULL, NULL, NULL);
if (!failcode)
return;