mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-20 10:34:20 +01:00
wallet: fix variable assignments (#124)
This commit is contained in:
@@ -115,7 +115,7 @@ cashu info
|
|||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
```bash
|
```bash
|
||||||
Version: 0.9.3
|
Version: 0.9.4
|
||||||
Debug: False
|
Debug: False
|
||||||
Cashu dir: /home/user/.cashu
|
Cashu dir: /home/user/.cashu
|
||||||
Wallet: wallet
|
Wallet: wallet
|
||||||
|
|||||||
@@ -66,4 +66,4 @@ NOSTR_RELAYS = env.list(
|
|||||||
)
|
)
|
||||||
|
|
||||||
MAX_ORDER = 64
|
MAX_ORDER = 64
|
||||||
VERSION = "0.9.3"
|
VERSION = "0.9.4"
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.tracebacklimit = None # type: ignore
|
sys.tracebacklimit = None # type: ignore
|
||||||
|
|
||||||
|
from loguru import logger
|
||||||
|
|
||||||
|
from cashu.core.settings import DEBUG
|
||||||
|
|
||||||
|
# configure logger
|
||||||
|
logger.remove()
|
||||||
|
logger.add(sys.stderr, level="DEBUG" if DEBUG else "INFO")
|
||||||
|
|||||||
@@ -157,6 +157,10 @@ class LedgerAPI:
|
|||||||
await store_keyset(keyset=keyset, db=self.db)
|
await store_keyset(keyset=keyset, db=self.db)
|
||||||
|
|
||||||
self.keys = keyset
|
self.keys = keyset
|
||||||
|
assert self.keys.public_keys
|
||||||
|
self.public_keys = self.keys.public_keys
|
||||||
|
assert self.keys.id
|
||||||
|
self.keyset_id = self.keys.id
|
||||||
logger.debug(f"Current mint keyset: {self.keys.id}")
|
logger.debug(f"Current mint keyset: {self.keys.id}")
|
||||||
return self.keys
|
return self.keys
|
||||||
|
|
||||||
@@ -184,11 +188,6 @@ class LedgerAPI:
|
|||||||
if keyset_id:
|
if keyset_id:
|
||||||
assert keyset_id in self.keysets, f"keyset {keyset_id} not active on mint"
|
assert keyset_id in self.keysets, f"keyset {keyset_id} not active on mint"
|
||||||
|
|
||||||
assert self.keys.public_keys
|
|
||||||
self.public_keys = self.keys.public_keys
|
|
||||||
assert self.keys.id
|
|
||||||
self.keyset_id = self.keys.id
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _construct_outputs(amounts: List[int], secrets: List[str]):
|
def _construct_outputs(amounts: List[int], secrets: List[str]):
|
||||||
"""Takes a list of amounts and secrets and returns outputs.
|
"""Takes a list of amounts and secrets and returns outputs.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "cashu"
|
name = "cashu"
|
||||||
version = "0.9.3"
|
version = "0.9.4"
|
||||||
description = "Ecash wallet and mint."
|
description = "Ecash wallet and mint."
|
||||||
authors = ["calle <callebtc@protonmail.com>"]
|
authors = ["calle <callebtc@protonmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -13,7 +13,7 @@ entry_points = {"console_scripts": ["cashu = cashu.wallet.cli.cli:cli"]}
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="cashu",
|
name="cashu",
|
||||||
version="0.9.3",
|
version="0.9.4",
|
||||||
description="Ecash wallet and mint for Bitcoin Lightning",
|
description="Ecash wallet and mint for Bitcoin Lightning",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|||||||
Reference in New Issue
Block a user