chore: config assets for multiple chains

- lightning config
- env vars
- bitcoin.conf for different networks
- copy configs in lightningd repo
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
Lakshya Singh 2023-09-20 19:48:41 +05:30
parent b5b1203de3
commit 76b08b810c
No known key found for this signature in database
GPG Key ID: D3239BA6109A2CE7
8 changed files with 53 additions and 8 deletions

View File

@ -2,15 +2,29 @@
## bitcoin.conf configuration file. Lines beginning with # are comments.
##
[test]
server=1
rpcallowip=0.0.0.0/0
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
rpcpassword=VLSsigner1
rpcport=18332
port=18333
[regtest]
rpcbind=0.0.0.0
rpcallowip=0.0.0.0/0
whitelist=0.0.0.0/0
zmqpubrawblock=tcp://bitcoind:38332
zmqpubrawtx=tcp://bitcoind:38333
txindex=1
blockfilterindex=1
rpcuser=rpcuser
rpcpassword=VLSsigner1
rpcport=38332
port=38333

9
assets/main-config Normal file
View File

@ -0,0 +1,9 @@
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

4
assets/main-env Normal file
View File

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

9
assets/regtest-config Normal file
View File

@ -0,0 +1,9 @@
network=regtest
bitcoin-rpcuser=rpcuser
bitcoin-rpcpassword=VLSsigner1
bitcoin-rpcport=38332
log-level=info
max-locktime-blocks=288
important-plugin=/usr/bin/clboss
clboss-auto-close=true
bind-addr=0.0.0.0:19846

4
assets/regtest-env Normal file
View File

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

View File

@ -5,4 +5,5 @@ bitcoin-rpcport=18332
log-level=info
max-locktime-blocks=288
important-plugin=/usr/bin/clboss
clboss-auto-close=true
clboss-auto-close=true
bind-addr=0.0.0.0:19735

View File

@ -97,6 +97,8 @@ 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

View File

@ -2,6 +2,8 @@
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)