mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
docker: change BITCOIN_NETWORK -> NETWORK
This parameter now might not belong to the Bitcoin network, because we introduce the Litecoin image soon.
This commit is contained in:
parent
1cd576e93a
commit
24ae098d18
@ -61,7 +61,7 @@ Start `btcd`, and then create an address for `Alice` that we'll directly mine
|
||||
bitcoin into.
|
||||
```bash
|
||||
# Init bitcoin network env variable:
|
||||
$ export BITCOIN_NETWORK="simnet"
|
||||
$ export NETWORK="simnet"
|
||||
|
||||
# Run "btcd" node:
|
||||
$ docker-compose up -d "btcd"
|
||||
@ -286,7 +286,7 @@ First of all you need to run `btcd` node in `testnet` and wait it to be
|
||||
synced with test network (`May the Force and Patience be with you` ᕦ(ò_óˇ)ᕤ).
|
||||
```bash
|
||||
# Init bitcoin network env variable:
|
||||
$ export BITCOIN_NETWORK="testnet"
|
||||
$ export NETWORK="testnet"
|
||||
|
||||
# Run "btcd" node:
|
||||
$ docker-compose up -d "btcd"
|
||||
|
@ -41,10 +41,10 @@ set_default() {
|
||||
# Set default variables if needed.
|
||||
RPCUSER=$(set_default "$RPCUSER" "devuser")
|
||||
RPCPASS=$(set_default "$RPCPASS" "devpass")
|
||||
BITCOIN_NETWORK=$(set_default "$BITCOIN_NETWORK" "simnet")
|
||||
NETWORK=$(set_default "$NETWORK" "simnet")
|
||||
|
||||
btcctl \
|
||||
"--$BITCOIN_NETWORK" \
|
||||
"--$NETWORK" \
|
||||
--rpccert="/rpc/rpc.cert" \
|
||||
--rpcuser="$RPCUSER" \
|
||||
--rpcpass="$RPCPASS" \
|
||||
|
@ -42,10 +42,10 @@ set_default() {
|
||||
RPCUSER=$(set_default "$RPCUSER" "devuser")
|
||||
RPCPASS=$(set_default "$RPCPASS" "devpass")
|
||||
DEBUG=$(set_default "$DEBUG" "info")
|
||||
BITCOIN_NETWORK=$(set_default "$BITCOIN_NETWORK" "simnet")
|
||||
NETWORK=$(set_default "$NETWORK" "simnet")
|
||||
|
||||
PARAMS=$(echo \
|
||||
"--$BITCOIN_NETWORK" \
|
||||
"--$NETWORK" \
|
||||
"--debuglevel=$DEBUG" \
|
||||
"--rpcuser=$RPCUSER" \
|
||||
"--rpcpass=$RPCPASS" \
|
||||
|
@ -14,7 +14,7 @@ services:
|
||||
environment:
|
||||
- RPCUSER
|
||||
- RPCPASS
|
||||
- BITCOIN_NETWORK
|
||||
- NETWORK
|
||||
|
||||
btcd:
|
||||
extends: btc
|
||||
@ -39,7 +39,7 @@ services:
|
||||
environment:
|
||||
- RPCUSER
|
||||
- RPCPASS
|
||||
- BITCOIN_NETWORK
|
||||
- NETWORK
|
||||
- DEBUG
|
||||
volumes:
|
||||
- shared:/rpc
|
||||
|
@ -42,13 +42,13 @@ set_default() {
|
||||
RPCUSER=$(set_default "$RPCUSER" "devuser")
|
||||
RPCPASS=$(set_default "$RPCPASS" "devpass")
|
||||
DEBUG=$(set_default "$DEBUG" "debug")
|
||||
BITCOIN_NETWORK=$(set_default "$BITCOIN_NETWORK" "simnet")
|
||||
NETWORK=$(set_default "$NETWORK" "simnet")
|
||||
|
||||
lnd \
|
||||
--datadir="/data" \
|
||||
--logdir="/data" \
|
||||
--bitcoin.active \
|
||||
"--bitcoin.$BITCOIN_NETWORK" \
|
||||
"--bitcoin.$NETWORK" \
|
||||
--bitcoin.rpchost="btcd" \
|
||||
--bitcoin.rpccert="/rpc/rpc.cert" \
|
||||
--bitcoin.rpcuser="$RPCUSER" \
|
||||
|
Loading…
Reference in New Issue
Block a user