Skip to content

Commit

Permalink
Merge branch 'main' into fast-api-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Nov 24, 2024
2 parents 739ca3c + c4b639b commit 31804cc
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ This command runs the mint on your local computer. Skip this step if you want to
## Docker

```
docker run -d -p 3338:3338 --name nutshell -e MINT_BACKEND_BOLT11_SAT=FakeWallet -e MINT_LISTEN_HOST=0.0.0.0 -e MINT_LISTEN_PORT=3338 -e MINT_PRIVATE_KEY=TEST_PRIVATE_KEY cashubtc/nutshell:0.16.2 poetry run mint
docker run -d -p 3338:3338 --name nutshell -e MINT_BACKEND_BOLT11_SAT=FakeWallet -e MINT_LISTEN_HOST=0.0.0.0 -e MINT_LISTEN_PORT=3338 -e MINT_PRIVATE_KEY=TEST_PRIVATE_KEY cashubtc/nutshell:0.16.3 poetry run mint
```

## From this repository
Expand Down
6 changes: 6 additions & 0 deletions cashu/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,12 @@ def __init__(
input_fee_ppk: Optional[int] = None,
id: str = "",
):
DEFAULT_SEED = "supersecretprivatekey"
if seed == DEFAULT_SEED:
raise Exception(
f"Seed is set to default value '{DEFAULT_SEED}'. Please change it."
)

self.derivation_path = derivation_path

if encrypted_seed and not settings.mint_seed_decryption_key:
Expand Down
2 changes: 1 addition & 1 deletion cashu/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

env = Env()

VERSION = "0.16.2"
VERSION = "0.16.3"


def find_env_file():
Expand Down
2 changes: 1 addition & 1 deletion cashu/mint/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def mint_features(self) -> Dict[int, Union[List[Any], Dict[str, Any]]]:
)

if mpp_features:
mint_features[MPP_NUT] = mpp_features
mint_features[MPP_NUT] = dict(methods=mpp_features)

# specify which websocket features are supported
# these two are supported by default
Expand Down
4 changes: 2 additions & 2 deletions cashu/wallet/mint_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def supports_mpp(self, method: str, unit: Unit) -> bool:
if not self.nuts:
return False
nut_15 = self.nuts.get(MPP_NUT)
if not nut_15 or not self.supports_nut(MPP_NUT):
if not nut_15 or not self.supports_nut(MPP_NUT) or not nut_15.get("methods"):
return False

for entry in nut_15:
for entry in nut_15["methods"]:
entry_obj = Nut15MppSupport.parse_obj(entry)
if entry_obj.method == method and entry_obj.unit == unit.name:
return True
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cashu"
version = "0.16.2"
version = "0.16.3"
description = "Ecash wallet and mint"
authors = ["calle <callebtc@protonmail.com>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setuptools.setup(
name="cashu",
version="0.16.2",
version="0.16.3",
description="Ecash wallet and mint",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 31804cc

Please sign in to comment.