From b251c2422aac35ff8ccbffa34990140948a01e11 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 23 Sep 2023 19:02:27 +0200 Subject: [PATCH] set proof only reserved if it properly serialized --- cashu/wallet/helpers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cashu/wallet/helpers.py b/cashu/wallet/helpers.py index be3950b4..418a6b75 100644 --- a/cashu/wallet/helpers.py +++ b/cashu/wallet/helpers.py @@ -213,7 +213,6 @@ async def send( "No proof with this amount found. Available amounts:" f" {set([p.amount for p in wallet.proofs])}" ) - await wallet.set_reserved(send_proofs, reserved=True) token = await wallet.serialize_proofs( send_proofs, @@ -221,7 +220,7 @@ async def send( include_dleq=include_dleq, ) print(token) - + await wallet.set_reserved(send_proofs, reserved=True) if legacy: print("") print("Old token format:")