mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-20 13:27:36 +02:00
scripts: auto-detect alpha vs bitcoin
A bit hacky, but saves editing two places. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
6cea21750d
commit
0b33da08c1
1 changed files with 13 additions and 10 deletions
|
|
@ -1,14 +1,17 @@
|
|||
# Sourced by other scripts
|
||||
#STYLE=bitcoin
|
||||
#CLI="bitcoin-cli -regtest"
|
||||
#DATADIR=$HOME/.bitcoin
|
||||
#REGTESTDIR=regtest
|
||||
#DAEMON=bitcoind
|
||||
|
||||
STYLE=alpha
|
||||
DATADIR=$HOME/.alpha
|
||||
REGTESTDIR=alpharegtest
|
||||
CLI="alpha-cli -datadir=$DATADIR -regtest -testnet=0"
|
||||
DAEMON="alphad -datadir=$DATADIR"
|
||||
if grep ^FEATURES.*ALPHA ../Makefile; then
|
||||
STYLE=alpha
|
||||
DATADIR=$HOME/.alpha
|
||||
REGTESTDIR=alpharegtest
|
||||
CLI="alpha-cli -datadir=$DATADIR -regtest -testnet=0"
|
||||
DAEMON="alphad -datadir=$DATADIR"
|
||||
else
|
||||
STYLE=bitcoin
|
||||
CLI="bitcoin-cli -regtest"
|
||||
DATADIR=$HOME/.bitcoin
|
||||
REGTESTDIR=regtest
|
||||
DAEMON="bitcoind -regtest"
|
||||
fi
|
||||
|
||||
#PREFIX="valgrind --vgdb-error=1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue