Skip to content

Commit

Permalink
proofs are stored automatically when created
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Oct 15, 2023
1 parent a5352cc commit b9e077b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cashu/wallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b9e077b

Please sign in to comment.