diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index 11504c9f..e45e37fc 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -839,6 +839,7 @@ async def pay_lightning( status = await super().pay_lightning(proofs, invoice, change_outputs) + # if payment fails if not status.paid: # remove the melt_id in proofs for p in proofs: @@ -869,7 +870,6 @@ async def pay_lightning( change_derivation_paths[: len(status.change)], ) logger.debug(f"Received change: {sum_proofs(change_proofs)} sat") - await self._store_proofs(change_proofs) return status async def check_proof_state(self, proofs):