From 6033d958c4edfe8779617eee4463ec01c0e73570 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 6 Jul 2022 00:09:05 +0100 Subject: [PATCH] ... --- cold-setup | 3 ++- test/setup.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cold-setup b/cold-setup index 4d72ca4..e161b40 100755 --- a/cold-setup +++ b/cold-setup @@ -19,6 +19,7 @@ USB_DECRYPT_NAME="cold-usb" USB_PATH= USB_PATH_PRE_DECRYPT= +BITCOIND="bitcoind -daemonwait -datadir=$DATA_DIRECTORY" BITCOIN_CLI="bitcoin-cli -datadir=$DATA_DIRECTORY" bitcoin_core_start() { @@ -30,7 +31,7 @@ bitcoin_core_start() { log_info "starting bitcoin core..." mkdir -p "$DATA_DIRECTORY" - bitcoind -daemonwait -datadir="$DATA_DIRECTORY" &> /dev/null + eval "$BITCOIND" &> /dev/null log_info "bitcoin core started" } diff --git a/test/setup.sh b/test/setup.sh index 6f5e2cd..6823a22 100644 --- a/test/setup.sh +++ b/test/setup.sh @@ -4,6 +4,7 @@ TEST_DIR=".testdir" source source.sh +BITCOIND="bitcoind -daemonwait -datadir=$DATA_DIRECTORY chain=regtest" BITCOIN_CLI="bitcoin-cli -datadir=$DATA_DIRECTORY -chain=regtest" assert() { -- 2.30.2