From 162cd47f1cd9c858589e926f619664daef7c524e Mon Sep 17 00:00:00 2001 From: conduition Date: Fri, 23 Aug 2024 04:27:04 +0000 Subject: [PATCH] avoid re-settling already settled DLC --- cashu/mint/db/write.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cashu/mint/db/write.py b/cashu/mint/db/write.py index ee9c9a89..2bd6ffd4 100644 --- a/cashu/mint/db/write.py +++ b/cashu/mint/db/write.py @@ -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)