Browse Source

pay: wrap missing route_channels handling in COMPAT_V052.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
c9e271df90
  1. 2
      lightningd/pay.c

2
lightningd/pay.c

@ -382,6 +382,7 @@ void payment_failed(struct lightningd *ld, const struct htlc_out *hout,
payment = wallet_payment_by_hash(tmpctx, ld->wallet,
&hout->payment_hash);
#ifdef COMPAT_V052
/* FIXME: Prior to 299b280f7, we didn't put route_nodes and
* route_channels in db. If this happens, it's an old payment,
* so we can simply mark it failed in db and return. */
@ -396,6 +397,7 @@ void payment_failed(struct lightningd *ld, const struct htlc_out *hout,
tal_free(tmpctx);
return;
}
#endif
/* This gives more details than a generic failure message */
if (localfail) {

Loading…
Cancel
Save