mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
pay: Store payment on failure.
This commit is contained in:
parent
60f5abdc9b
commit
24ee5d0437
@ -449,9 +449,7 @@ void payment_failed(struct lightningd *ld, const struct htlc_out *hout,
|
||||
}
|
||||
|
||||
/* Save to DB */
|
||||
/* This may invalidated the payment structure returned, so
|
||||
* access to payment object should not be done after the
|
||||
* below call. */
|
||||
wallet_payment_store(ld->wallet, &hout->payment_hash);
|
||||
wallet_payment_set_status(ld->wallet, &hout->payment_hash,
|
||||
PAYMENT_FAILED, NULL);
|
||||
wallet_payment_set_failinfo(ld->wallet,
|
||||
|
Loading…
Reference in New Issue
Block a user