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:
parent
b5b1203de3
commit
76b08b810c
@ -2,15 +2,29 @@
|
|||||||
## bitcoin.conf configuration file. Lines beginning with # are comments.
|
## bitcoin.conf configuration file. Lines beginning with # are comments.
|
||||||
##
|
##
|
||||||
|
|
||||||
[test]
|
|
||||||
server=1
|
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
|
rpcuser=rpcuser
|
||||||
rpcpassword=VLSsigner1
|
rpcpassword=VLSsigner1
|
||||||
rpcport=18332
|
rpcport=18332
|
||||||
|
port=18333
|
||||||
|
|
||||||
|
[regtest]
|
||||||
rpcbind=0.0.0.0
|
rpcbind=0.0.0.0
|
||||||
rpcallowip=0.0.0.0/0
|
rpcuser=rpcuser
|
||||||
whitelist=0.0.0.0/0
|
rpcpassword=VLSsigner1
|
||||||
zmqpubrawblock=tcp://bitcoind:38332
|
rpcport=38332
|
||||||
zmqpubrawtx=tcp://bitcoind:38333
|
port=38333
|
||||||
txindex=1
|
|
||||||
blockfilterindex=1
|
|
9
assets/main-config
Normal file
9
assets/main-config
Normal 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
4
assets/main-env
Normal 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
9
assets/regtest-config
Normal 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
4
assets/regtest-env
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
VLS_PORT=17701
|
||||||
|
VLS_NETWORK=regtest
|
||||||
|
BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:38332
|
||||||
|
RUST_LOG=info
|
@ -6,3 +6,4 @@ log-level=info
|
|||||||
max-locktime-blocks=288
|
max-locktime-blocks=288
|
||||||
important-plugin=/usr/bin/clboss
|
important-plugin=/usr/bin/clboss
|
||||||
clboss-auto-close=true
|
clboss-auto-close=true
|
||||||
|
bind-addr=0.0.0.0:19735
|
@ -97,6 +97,8 @@ 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/main-config /main-config
|
||||||
|
|
||||||
USER lightning
|
USER lightning
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
set -e
|
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 /main-config ${LIGHTNINGD_DATA}/main-config
|
||||||
|
|
||||||
export GREENLIGHT_VERSION=$(lightningd --version)
|
export GREENLIGHT_VERSION=$(lightningd --version)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user