mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-02 00:14:28 +01:00
Mint: Talk to LND via gRPC (#595)
* protos + lnd_grpc.py + __init__ + status method * `create_invoice` * `pay_invoice`, `pay_partial_invoice` and router pb2 * `get_invoice_status` * channel keep-alive options * Update lnd_grpc.py * `get_payment_status` + make format * `get_payment_quote` and `paid_invoices_stream`. This was suspiciously easy... * download_and_build script modified to fix the imports on generated code * pyproject with new dependencies * update poetry.lock * fixed errors in `pay_partial_invoice` * update .env.example * make format * enable regtest * update .env.example * suggested fixes * suggested changes pt.2 * Update cashu/core/settings.py Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com> --------- Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
||||
python-version: ["3.10"]
|
||||
poetry-version: ["1.7.1"]
|
||||
backend-wallet-class:
|
||||
["LndRestWallet", "CLNRestWallet", "CoreLightningRestWallet", "LNbitsWallet"]
|
||||
["LndRPCWallet", "LndRestWallet", "CLNRestWallet", "CoreLightningRestWallet", "LNbitsWallet"]
|
||||
mint-database: ["./test_data/test_mint", "postgres://cashu:cashu@localhost:5432/cashu"]
|
||||
# mint-database: ["./test_data/test_mint"]
|
||||
with:
|
||||
|
||||
7
.github/workflows/regtest.yml
vendored
7
.github/workflows/regtest.yml
vendored
@@ -52,11 +52,18 @@ jobs:
|
||||
MINT_TEST_DATABASE: ${{ inputs.mint-database }}
|
||||
TOR: false
|
||||
MINT_BACKEND_BOLT11_SAT: ${{ inputs.backend-wallet-class }}
|
||||
# LNbits wallet
|
||||
MINT_LNBITS_ENDPOINT: http://localhost:5001
|
||||
MINT_LNBITS_KEY: d08a3313322a4514af75d488bcc27eee
|
||||
# LndRestWallet
|
||||
MINT_LND_REST_ENDPOINT: https://localhost:8081/
|
||||
MINT_LND_REST_CERT: ./regtest/data/lnd-3/tls.cert
|
||||
MINT_LND_REST_MACAROON: ./regtest/data/lnd-3/data/chain/bitcoin/regtest/admin.macaroon
|
||||
# LndRPCWallet
|
||||
MINT_LND_RPC_ENDPOINT: localhost:10009
|
||||
MINT_LND_RPC_CERT: ./regtest/data/lnd-3/tls.cert
|
||||
MINT_LND_RPC_MACAROON: ./regtest/data/lnd-3/data/chain/bitcoin/regtest/admin.macaroon
|
||||
|
||||
MINT_LND_ENABLE_MPP: true
|
||||
# LND_GRPC_ENDPOINT: localhost
|
||||
# LND_GRPC_PORT: 10009
|
||||
|
||||
Reference in New Issue
Block a user