From bac50f2150df8f0075be1d051464095ec4c40a0b Mon Sep 17 00:00:00 2001 From: redshift <213178690+sh1ftred@users.noreply.github.com> Date: Mon, 22 Sep 2025 16:25:02 +0000 Subject: [PATCH] Fixed the 503 mint service unavailable bug This flag fetch all keysets from the db into the wallet, which is wrong given that we're initiating it for a mint. And load_mint sets the first keyset from all the keysets from the db, irrespective of the unit and the mint. Fixes #175 --- routstr/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routstr/wallet.py b/routstr/wallet.py index c00b5b82..d9c35666 100644 --- a/routstr/wallet.py +++ b/routstr/wallet.py @@ -153,7 +153,7 @@ async def get_wallet(mint_url: str, unit: str = "sat", load: bool = True) -> Wal id = f"{mint_url}_{unit}" if id not in _wallets: _wallets[id] = await Wallet.with_db( - mint_url, db=".wallet", load_all_keysets=True, unit=unit + mint_url, db=".wallet", unit=unit ) if load: