network: remove bitcoin mainnet setup
- not ready for mainnet yet Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
parent
f4f2807389
commit
0bfcb691f2
@ -49,7 +49,6 @@ docker compose up --build
|
||||
We have three possible overrides over the default `testnet` configuration in `docker-compose.yml`:
|
||||
- `docker-compose.testnet.yml`
|
||||
- `docker-compose.regtest.yml`
|
||||
- `docker-compose.mainnet.yml`
|
||||
|
||||
To use override we have to pass it down both the config using `-f` flag:
|
||||
```
|
||||
|
@ -8,13 +8,6 @@ whitelist=0.0.0.0/0
|
||||
txindex=1
|
||||
blockfilterindex=1
|
||||
|
||||
[main]
|
||||
rpcbind=0.0.0.0
|
||||
rpcuser=rpcuser
|
||||
rpcpassword=VLSsigner1
|
||||
rpcport=8332
|
||||
port=8333
|
||||
|
||||
[test]
|
||||
rpcbind=0.0.0.0
|
||||
rpcuser=rpcuser
|
||||
@ -27,4 +20,4 @@ rpcbind=0.0.0.0
|
||||
rpcuser=rpcuser
|
||||
rpcpassword=VLSsigner1
|
||||
rpcport=38332
|
||||
port=38333
|
||||
port=38333
|
||||
|
@ -1,9 +0,0 @@
|
||||
network=regtest
|
||||
bitcoin-rpcuser=rpcuser
|
||||
bitcoin-rpcpassword=VLSsigner1
|
||||
bitcoin-rpcport=8332
|
||||
log-level=info
|
||||
max-locktime-blocks=288
|
||||
important-plugin=/usr/bin/clboss
|
||||
clboss-auto-close=true
|
||||
bind-addr=0.0.0.0:9735
|
@ -1,4 +0,0 @@
|
||||
VLS_PORT=17701
|
||||
VLS_NETWORK=regtest
|
||||
BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:8332
|
||||
RUST_LOG=info
|
@ -1,31 +0,0 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
bitcoin-core:
|
||||
container_name: bitcoind-main
|
||||
expose:
|
||||
- 8332
|
||||
ports:
|
||||
- 8333:8333
|
||||
environment:
|
||||
- BITCOIN_CHAIN=main
|
||||
|
||||
core-lightning:
|
||||
container_name: lightningd-main
|
||||
command:
|
||||
- --conf=/home/lightning/.lightning/main-config
|
||||
- --bitcoin-rpcconnect=bitcoind
|
||||
expose:
|
||||
- 9735
|
||||
ports:
|
||||
- 9735:9735
|
||||
env_file:
|
||||
- ./assets/main-env
|
||||
environment:
|
||||
- BITCOIN_CHAIN=main
|
||||
|
||||
txoo:
|
||||
container_name: txoo-main
|
||||
command:
|
||||
- -r http://rpcuser:VLSsigner1@bitcoind:8332
|
||||
environment:
|
||||
- BITCOIN_CHAIN=main
|
@ -107,7 +107,6 @@ RUN mkdir -p "${BITCOIND_HOME}" && \
|
||||
COPY assets/bitcoin.conf "${BITCOIND_HOME}"/bitcoin.conf
|
||||
COPY assets/testnet-config /testnet-config
|
||||
COPY assets/regtest-config /regtest-config
|
||||
COPY assets/main-config /main-config
|
||||
|
||||
USER lightning
|
||||
|
||||
|
@ -3,7 +3,6 @@ set -e
|
||||
|
||||
cp -u /testnet-config ${LIGHTNINGD_DATA}/testnet-config
|
||||
cp -u /regtest-config ${LIGHTNINGD_DATA}/regtest-config
|
||||
cp -u /main-config ${LIGHTNINGD_DATA}/main-config
|
||||
|
||||
export GREENLIGHT_VERSION=$(lightningd --version)
|
||||
|
||||
|
@ -7,9 +7,8 @@ LIGHTNING_NETWORK=""
|
||||
case $BITCOIN_CHAIN in
|
||||
"test") LIGHTNING_NETWORK=testnet ;;
|
||||
"regtest") LIGHTNING_NETWORK=regtest ;;
|
||||
"main") LIGHTNING_NETWORK=bitcoin ;;
|
||||
"signet") LIGHTNING_NETWORK=signet ;;
|
||||
*) echo "Invalid BITCOIN_CHAIN value: $BITCOIN_CHAIN" && exit 1 ;;
|
||||
esac
|
||||
|
||||
lightning-cli --network $LIGHTNING_NETWORK getinfo
|
||||
lightning-cli --network $LIGHTNING_NETWORK getinfo
|
||||
|
Loading…
x
Reference in New Issue
Block a user