Skip to content

Commit

Permalink
Blink working
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Feb 17, 2024
1 parent 18f7b4d commit f83e359
Show file tree
Hide file tree
Showing 6 changed files with 223 additions and 67 deletions.
6 changes: 4 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ MINT_DERIVATION_PATH="m/0'/0'/0'"
MINT_DATABASE=data/mint

# Lightning
# Supported: LndRestWallet, LNbitsWallet, FakeWallet
MINT_LIGHTNING_BACKEND=LNbitsWallet
# Supported: LndRestWallet, LNbitsWallet, FakeWallet, BlinkWallet
MINT_LIGHTNING_BACKEND=FakeWallet

# for use with LNbitsWallet
MINT_LNBITS_ENDPOINT=https://legend.lnbits.com
Expand All @@ -73,6 +73,8 @@ MINT_CORELIGHTNING_REST_URL=https://localhost:3001
MINT_CORELIGHTNING_REST_MACAROON="./clightning-rest/access.macaroon"
MINT_CORELIGHTNING_REST_CERT="./clightning-2-rest/certificate.pem"

MINT_BLINK_KEY=blink_abcdefgh

# fee to reserve in percent of the amount
LIGHTNING_FEE_PERCENT=1.0
# minimum fee to reserve
Expand Down
2 changes: 1 addition & 1 deletion cashu/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ class MintSettings(CashuSettings):

mint_lnbits_endpoint: str = Field(default=None)
mint_lnbits_key: str = Field(default=None)

mint_strike_key: str = Field(default=None)
mint_blink_key: str = Field(default=None)


class FakeWalletSettings(MintSettings):
Expand Down
1 change: 1 addition & 0 deletions cashu/lightning/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# type: ignore
from ..core.settings import settings
from .blink import BlinkWallet # noqa: F401
from .corelightningrest import CoreLightningRestWallet # noqa: F401
from .fake import FakeWallet # noqa: F401
from .lnbits import LNbitsWallet # noqa: F401
Expand Down
Loading

0 comments on commit f83e359

Please sign in to comment.