mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-21 02:54:20 +01:00
multimint works
This commit is contained in:
@@ -234,6 +234,16 @@ async def send(ctx, amount: int, lock: str):
|
|||||||
hide_secrets=True if lock and not p2sh else False,
|
hide_secrets=True if lock and not p2sh else False,
|
||||||
include_mints=True,
|
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()
|
wallet.status()
|
||||||
|
|
||||||
|
|
||||||
@@ -495,5 +505,5 @@ async def info(ctx):
|
|||||||
print(f"Tor enabled: {TOR}")
|
print(f"Tor enabled: {TOR}")
|
||||||
if SOCKS_HOST:
|
if SOCKS_HOST:
|
||||||
print(f"Socks proxy: {SOCKS_HOST}:{SOCKS_PORT}")
|
print(f"Socks proxy: {SOCKS_HOST}:{SOCKS_PORT}")
|
||||||
print(f"Mint URL: {MINT_URL}")
|
print(f"Mint URL: {ctx.obj['HOST']}")
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -63,6 +63,8 @@ class LedgerAPI:
|
|||||||
def _set_requests(self):
|
def _set_requests(self):
|
||||||
s = requests.Session()
|
s = requests.Session()
|
||||||
s.headers.update({"Client-version": VERSION})
|
s.headers.update({"Client-version": VERSION})
|
||||||
|
if DEBUG:
|
||||||
|
s.verify = False
|
||||||
socks_host, socks_port = None, None
|
socks_host, socks_port = None, None
|
||||||
if TOR and TorProxy().check_platform():
|
if TOR and TorProxy().check_platform():
|
||||||
self.tor = TorProxy(timeout=True)
|
self.tor = TorProxy(timeout=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user