From aa7b0412d67f8f52b6523bc24a13d75e085e6c6b Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 24 Dec 2022 03:51:42 +0100 Subject: [PATCH] multimint works --- cashu/wallet/cli.py | 12 +++++++++++- cashu/wallet/wallet.py | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index 3fdfa30..11b5467 100644 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -234,6 +234,16 @@ async def send(ctx, amount: int, lock: str): hide_secrets=True if lock and not p2sh else False, include_mints=True, ) + print(token) + + # print("") + # print("Legacy:") + # token = await wallet.serialize_proofs( + # send_proofs, + # hide_secrets=True if lock and not p2sh else False, + # include_mints=False, + # ) + # print(token) wallet.status() @@ -495,5 +505,5 @@ async def info(ctx): print(f"Tor enabled: {TOR}") if SOCKS_HOST: print(f"Socks proxy: {SOCKS_HOST}:{SOCKS_PORT}") - print(f"Mint URL: {MINT_URL}") + print(f"Mint URL: {ctx.obj['HOST']}") return diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index 68a0d02..60f0806 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -63,6 +63,8 @@ class LedgerAPI: def _set_requests(self): s = requests.Session() s.headers.update({"Client-version": VERSION}) + if DEBUG: + s.verify = False socks_host, socks_port = None, None if TOR and TorProxy().check_platform(): self.tor = TorProxy(timeout=True)