mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-02-04 00:04:20 +01:00
Mint: Add clnrest.py Lightning backend (#551)
* log cln error * return a string * update corelightningrest to work with latest ver using rune * fix mpp spec and backend support check * refactor validation in ledger * remove weird error * fix mpp melt model * corelightningrest.py: Added Multi-Mint payout support lndrest.py: fix `quote.amount` is not always in sats + better checks * small fix * Fix quote.unit str2unit conversion + add missing imports * settings enable mpp corelightning (default false) * small fix * fix `paid_invoice_stream` * make format * handle runes * load rune * rename to MINT_CORELIGHTNING_REST_RUNE * try without cert * port * try except callback dispatcher * clean up cln-rest streaming parser * conftest: mint_corelightning_enable_mpp * enable mpp in regtest.yaml * fix error handling clnrest, remove lndrest changes * CLNRest + CoreLightningRest * clean up corelightningrest and get last index before starting the stream * clean up --------- Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com> Co-authored-by: Richard Bensberg <r@coinbatsu.com>
This commit is contained in:
@@ -57,7 +57,7 @@ MINT_DERIVATION_PATH="m/0'/0'/0'"
|
||||
MINT_DATABASE=data/mint
|
||||
|
||||
# Funding source backends
|
||||
# Supported: FakeWallet, LndRestWallet, CoreLightningRestWallet, BlinkWallet, LNbitsWallet, StrikeWallet
|
||||
# Supported: FakeWallet, LndRestWallet, CLNRestWallet, BlinkWallet, LNbitsWallet, StrikeWallet, CoreLightningRestWallet (deprecated)
|
||||
MINT_BACKEND_BOLT11_SAT=FakeWallet
|
||||
# Only works if a usd derivation path is set
|
||||
# MINT_BACKEND_BOLT11_SAT=FakeWallet
|
||||
@@ -72,7 +72,13 @@ MINT_LND_REST_CERT="/home/lnd/.lnd/tls.cert"
|
||||
MINT_LND_REST_MACAROON="/home/lnd/.lnd/data/chain/bitcoin/regtest/admin.macaroon"
|
||||
MINT_LND_REST_CERT_VERIFY=True
|
||||
|
||||
# Use with CLNRestWallet
|
||||
MINT_CLNREST_URL=https://localhost:3010
|
||||
MINT_CLNREST_CERT="./clightning-2/regtest/ca.pem"
|
||||
MINT_CLNREST_RUNE="Base64string== or path to file containing the rune"
|
||||
|
||||
# Use with CoreLightningRestWallet
|
||||
# Note: CoreLightningRestWallet is deprecated, use CLNRestWallet instead
|
||||
MINT_CORELIGHTNING_REST_URL=https://localhost:3001
|
||||
MINT_CORELIGHTNING_REST_MACAROON="./clightning-rest/access.macaroon"
|
||||
MINT_CORELIGHTNING_REST_CERT="./clightning-2-rest/certificate.pem"
|
||||
|
||||
Reference in New Issue
Block a user