network: remove bitcoin mainnet setup

- not ready for mainnet yet
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
Lakshya Singh 2023-10-27 23:05:34 +05:30
parent f4f2807389
commit 0bfcb691f2
No known key found for this signature in database
GPG Key ID: D3239BA6109A2CE7
8 changed files with 2 additions and 57 deletions

View File

@ -49,7 +49,6 @@ docker compose up --build
We have three possible overrides over the default `testnet` configuration in `docker-compose.yml`: We have three possible overrides over the default `testnet` configuration in `docker-compose.yml`:
- `docker-compose.testnet.yml` - `docker-compose.testnet.yml`
- `docker-compose.regtest.yml` - `docker-compose.regtest.yml`
- `docker-compose.mainnet.yml`
To use override we have to pass it down both the config using `-f` flag: To use override we have to pass it down both the config using `-f` flag:
``` ```

View File

@ -8,13 +8,6 @@ whitelist=0.0.0.0/0
txindex=1 txindex=1
blockfilterindex=1 blockfilterindex=1
[main]
rpcbind=0.0.0.0
rpcuser=rpcuser
rpcpassword=VLSsigner1
rpcport=8332
port=8333
[test] [test]
rpcbind=0.0.0.0 rpcbind=0.0.0.0
rpcuser=rpcuser rpcuser=rpcuser
@ -27,4 +20,4 @@ rpcbind=0.0.0.0
rpcuser=rpcuser rpcuser=rpcuser
rpcpassword=VLSsigner1 rpcpassword=VLSsigner1
rpcport=38332 rpcport=38332
port=38333 port=38333

View File

@ -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

View File

@ -1,4 +0,0 @@
VLS_PORT=17701
VLS_NETWORK=regtest
BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:8332
RUST_LOG=info

View File

@ -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

View File

@ -107,7 +107,6 @@ RUN mkdir -p "${BITCOIND_HOME}" && \
COPY assets/bitcoin.conf "${BITCOIND_HOME}"/bitcoin.conf COPY assets/bitcoin.conf "${BITCOIND_HOME}"/bitcoin.conf
COPY assets/testnet-config /testnet-config COPY assets/testnet-config /testnet-config
COPY assets/regtest-config /regtest-config COPY assets/regtest-config /regtest-config
COPY assets/main-config /main-config
USER lightning USER lightning

View File

@ -3,7 +3,6 @@ set -e
cp -u /testnet-config ${LIGHTNINGD_DATA}/testnet-config cp -u /testnet-config ${LIGHTNINGD_DATA}/testnet-config
cp -u /regtest-config ${LIGHTNINGD_DATA}/regtest-config cp -u /regtest-config ${LIGHTNINGD_DATA}/regtest-config
cp -u /main-config ${LIGHTNINGD_DATA}/main-config
export GREENLIGHT_VERSION=$(lightningd --version) export GREENLIGHT_VERSION=$(lightningd --version)

View File

@ -7,9 +7,8 @@ LIGHTNING_NETWORK=""
case $BITCOIN_CHAIN in case $BITCOIN_CHAIN in
"test") LIGHTNING_NETWORK=testnet ;; "test") LIGHTNING_NETWORK=testnet ;;
"regtest") LIGHTNING_NETWORK=regtest ;; "regtest") LIGHTNING_NETWORK=regtest ;;
"main") LIGHTNING_NETWORK=bitcoin ;;
"signet") LIGHTNING_NETWORK=signet ;; "signet") LIGHTNING_NETWORK=signet ;;
*) echo "Invalid BITCOIN_CHAIN value: $BITCOIN_CHAIN" && exit 1 ;; *) echo "Invalid BITCOIN_CHAIN value: $BITCOIN_CHAIN" && exit 1 ;;
esac esac
lightning-cli --network $LIGHTNING_NETWORK getinfo lightning-cli --network $LIGHTNING_NETWORK getinfo