From f0cab4e74bf1a072c0b48e103c5935f119dcfcc3 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 25 Sep 2015 11:50:24 +0930 Subject: [PATCH] gather_updates: fix rebase error. Didn't update amount field in d00eeded9f49703b45feb378f2246a6f4017dba5. Didn't compile test either :( Signed-off-by: Rusty Russell --- test-cli/gather_updates.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-cli/gather_updates.c b/test-cli/gather_updates.c index 7f5af8843..41f02c25c 100644 --- a/test-cli/gather_updates.c +++ b/test-cli/gather_updates.c @@ -204,7 +204,7 @@ struct channel_state *gather_updates(const tal_t *ctx, pkt->update_routefail_htlc->r_hash); if (n == tal_count(cstate->a.htlcs)) errx(1, "Unknown R hash in %s", *argv); - amount = cstate->a.htlcs[n]->amount; + amount = cstate->a.htlcs[n]->amount_msat; if (!funding_delta(o1, o2, oa, 0, -amount, &cstate->a, &cstate->b)) errx(1, "Impossible htlc %llu %s", @@ -215,7 +215,7 @@ struct channel_state *gather_updates(const tal_t *ctx, pkt->update_routefail_htlc->r_hash); if (n == tal_count(cstate->b.htlcs)) errx(1, "Unknown R hash in %s", *argv); - amount = cstate->b.htlcs[n]->amount; + amount = cstate->b.htlcs[n]->amount_msat; if (!funding_delta(o2, o1, oa, 0, -amount, &cstate->b, &cstate->a)) errx(1, "Impossible htlc %llu %s",