mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
pay: wrap missing route_channels handling in COMPAT_V052.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
9d9c1c3db6
commit
c9e271df90
@ -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…
Reference in New Issue
Block a user