integrating lnd with btcd.
This commit is contained in:
@@ -9,13 +9,11 @@ services:
|
||||
indranet:
|
||||
ipv4_address: 172.16.42.2
|
||||
command:
|
||||
- "--listen=0.0.0.0:8333"
|
||||
- "--rpclisten=0.0.0.0:8334"
|
||||
- "--rpcuser=simnet"
|
||||
- "--rpcpass=simnet"
|
||||
- "--simnet"
|
||||
- "--txindex"
|
||||
- "--miningaddr=SgFsjcwvNg8iPD9HGSvzbzzymaGWVFXp6u"
|
||||
- "--miningaddr=SQWX48N37PFYbSrNqbZ8b4ZeYA3SPwwApR"
|
||||
btcwallet:
|
||||
image: indralabs/btcwallet-multi-arch:linux-amd64-dev
|
||||
volumes:
|
||||
@@ -32,20 +30,6 @@ services:
|
||||
- "--rpcconnect=172.16.42.2:8334"
|
||||
- "--username=simnet"
|
||||
- "--password=simnet"
|
||||
# btcctl:
|
||||
# image: indralabs/btcctl-multi-arch:linux-amd64-dev
|
||||
# volumes:
|
||||
# - config:/etc/btcd:ro
|
||||
# networks:
|
||||
# indranet:
|
||||
# depends_on:
|
||||
# - btcwallet
|
||||
# command:
|
||||
# - "--rpcserver=172.16.42.2:8334"
|
||||
# - "--rpcuser=simnet"
|
||||
# - "--rpcpass=simnet"
|
||||
# - "--simnet"
|
||||
# - "generate 1"
|
||||
volumes:
|
||||
config:
|
||||
data:
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
version: '3'
|
||||
services:
|
||||
# btcd:
|
||||
# image: indralabs/btcd
|
||||
# volumes:
|
||||
# - btcd_config:/etc/btcd
|
||||
# - btcd_data:/var/btcd
|
||||
# networks:
|
||||
# indranet:
|
||||
# ipv4_address: 172.16.42.2
|
||||
# command:
|
||||
# - "--rpcuser=simnet"
|
||||
# - "--rpcpass=simnet"
|
||||
# - "--simnet"
|
||||
lnd:
|
||||
image: indralabs/lnd-multi-arch:linux-amd64-dev
|
||||
volumes:
|
||||
@@ -19,35 +7,19 @@ services:
|
||||
- lnd_data:/var/lnd
|
||||
networks:
|
||||
indranet:
|
||||
ipv4_address: 172.16.42.3
|
||||
ipv4_address: 172.16.42.10
|
||||
# depends_on:
|
||||
# - btcd
|
||||
# command:
|
||||
# - "--bitcoin.active"
|
||||
# - "--bitcoin.simnet"
|
||||
# - "--btcd.rpchost=172.16.42.2:8334"
|
||||
# - "--btcd.rpcuser=simnet"
|
||||
# - "--btcd.rpcpass=simnet"
|
||||
# - "--rpclisten=0.0.0.0:10009"
|
||||
# - "--listen=0.0.0.0:9735"
|
||||
# - "--adminmacaroonpath=/etc/lnd/keys/admin.macaroon"
|
||||
# btcctl:
|
||||
# image: indralabs/btcctl
|
||||
# volumes:
|
||||
# - config:/etc/btcd:ro
|
||||
# networks:
|
||||
# indranet:
|
||||
# depends_on:
|
||||
# - btcd
|
||||
# command:
|
||||
# - "--rpcserver=172.16.42.2:8333"
|
||||
# - "--rpcuser=simnet"
|
||||
# - "--rpcpass=simnet"
|
||||
# - "--simnet"
|
||||
# - "getinfo"
|
||||
command:
|
||||
- "--bitcoin.active"
|
||||
- "--bitcoin.simnet"
|
||||
- "--btcd.rpchost=172.16.42.2:8334"
|
||||
- "--btcd.rpcuser=simnet"
|
||||
- "--btcd.rpcpass=simnet"
|
||||
- "--rpclisten=0.0.0.0:10009"
|
||||
- "--listen=0.0.0.0:9735"
|
||||
- "--adminmacaroonpath=/etc/lnd/keys/admin.macaroon"
|
||||
volumes:
|
||||
# btcd_config:
|
||||
# btcd_data:
|
||||
lnd_config:
|
||||
lnd_data:
|
||||
networks:
|
||||
|
||||
@@ -24,6 +24,6 @@ USER lnd:lnd
|
||||
# :10009 lnd RPC port
|
||||
EXPOSE 9735 10009
|
||||
|
||||
ENTRYPOINT ["/bin/lnd", "--configfile=/etc/lnd/lnd.conf", "--lnddir=/var/lnd", "--datadir=/var/lnd", "--feeurl=https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json"]
|
||||
ENTRYPOINT ["/bin/lnd", "--configfile=/dev/null", "--lnddir=/var/lnd", "--datadir=/var/lnd", "--logdir=/var/lnd", "--tlscertpath=/etc/lnd/keys/tls.cert", "--tlskeypath=/etc/lnd/keys/tls.key", "--feeurl=https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json", "--listen=0.0.0.0:9735", "--rpclisten=0.0.0.0:10009"]
|
||||
CMD ["--bitcoin.active", "--bitcoin.mainnet", "--bitcoin.node=neutrino"]
|
||||
|
||||
|
||||
10
docker/release/targets/lnd/scripts/lncli
Executable file
10
docker/release/targets/lnd/scripts/lncli
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker run --rm -it \
|
||||
--network=btcd_indranet \
|
||||
--volume=lnd_config:/etc/lnd:ro \
|
||||
--volume=lnd_data:/var/lnd:ro \
|
||||
indralabs/lncli-multi-arch:linux-amd64-dev \
|
||||
--rpcserver=172.16.42.10 \
|
||||
--tlscertpath=/etc/lnd/keys/rpc.cert \
|
||||
--chain=bitcoin --network=simnet $@
|
||||
@@ -18,12 +18,12 @@
|
||||
; Windows environment variables are typically %VARIABLE%, but they must be
|
||||
; accessed with $VARIABLE here. Also, ~ is expanded to $LOCALAPPDATA on Windows.
|
||||
|
||||
datadir=/var/lnd
|
||||
;datadir=/var/lnd
|
||||
|
||||
; The directory that logs are stored in. The logs are auto-rotated by default.
|
||||
; Rotated logs are compressed in place.
|
||||
|
||||
logdir=/var/lnd
|
||||
;logdir=/var/lnd
|
||||
|
||||
; Number of logfiles that the log rotation should keep. Setting it to 0 disables deletion of old log files.
|
||||
; maxlogfiles=3
|
||||
@@ -37,11 +37,11 @@ logdir=/var/lnd
|
||||
|
||||
; Path to TLS certificate for lnd's RPC and REST services.
|
||||
|
||||
tlscertpath=/etc/lnd/keys/tls.cert
|
||||
;tlscertpath=/etc/lnd/keys/tls.cert
|
||||
|
||||
; Path to TLS private key for lnd's RPC and REST services.
|
||||
|
||||
tlskeypath=/etc/lnd/keys/tls.key
|
||||
;tlskeypath=/etc/lnd/keys/tls.key
|
||||
|
||||
; Adds an extra ip to the generated certificate. Setting multiple tlsextraip= entries is allowed.
|
||||
; (old tls files must be deleted if changed)
|
||||
@@ -130,7 +130,7 @@ tlskeypath=/etc/lnd/keys/tls.key
|
||||
; address per line.
|
||||
; All ipv4 on port 9735:
|
||||
|
||||
listen=0.0.0.0:9735
|
||||
;listen=0.0.0.0:9735
|
||||
|
||||
; On all ipv4 interfaces on port 9735 and ipv6 localhost port 9736:
|
||||
; listen=0.0.0.0:9735
|
||||
@@ -144,7 +144,7 @@ listen=0.0.0.0:9735
|
||||
; address per line.
|
||||
; Only ipv4 localhost on port 10009:
|
||||
|
||||
rpclisten=0.0.0.0:10009
|
||||
;rpclisten=0.0.0.0:10009
|
||||
|
||||
; rpclisten=localhost:10009
|
||||
; On ipv4 localhost port 10009 and ipv6 port 10010:
|
||||
@@ -253,7 +253,7 @@ rpclisten=0.0.0.0:10009
|
||||
; Optional URL for external fee estimation. If no URL is specified, the method
|
||||
; for fee estimation will depend on the chosen backend and network. Must be set
|
||||
; for neutrino on mainnet.
|
||||
feeurl=https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json
|
||||
; feeurl=https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json
|
||||
|
||||
; If true, then automatic network bootstrapping will not be attempted. This
|
||||
; means that your node won't attempt to automatically seek out peers on the
|
||||
@@ -557,7 +557,7 @@ feeurl=https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json
|
||||
|
||||
; The base directory that contains the node's data, logs, configuration file,
|
||||
; etc.
|
||||
btcd.dir=/var/btcd
|
||||
; btcd.dir=/var/btcd
|
||||
|
||||
; The host that your local btcd daemon is listening on. By default, this
|
||||
; setting is assumed to be localhost with the default port for the current
|
||||
@@ -577,7 +577,7 @@ btcd.dir=/var/btcd
|
||||
; File containing the daemon's certificate file. This only needs to be set if
|
||||
; the node isn't on the same host as lnd.
|
||||
|
||||
btcd.rpccert=/etc/btcd/keys/rpc.cert
|
||||
; btcd.rpccert=/etc/btcd/keys/rpc.cert
|
||||
|
||||
; The raw bytes of the daemon's PEM-encoded certificate chain which will be used
|
||||
; to authenticate the RPC connection. This only needs to be set if the btcd
|
||||
|
||||
Reference in New Issue
Block a user