Skip to content

Commit

Permalink
avoid re-settling already settled DLC
Browse files Browse the repository at this point in the history
  • Loading branch information
conduition committed Aug 23, 2024
1 parent 0c810fa commit 162cd47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cashu/mint/db/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ async def _settle_dlc(
dlc_root=settlement.dlc_root,
details="DLC already settled"
))
continue

assert settlement.outcome
await self.crud.set_dlc_settled_and_debts(settlement.dlc_root, settlement.outcome.P, self.db, conn)
Expand Down

0 comments on commit 162cd47

Please sign in to comment.