multimint works

This commit is contained in:
callebtc
2022-12-24 03:51:42 +01:00
parent bea17fbd1a
commit aa7b0412d6
2 changed files with 13 additions and 1 deletions

View File

@@ -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

View File

@@ -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)