From 1f61e90a8da566b027f701ecd5b793346dd80d4f Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Tue, 17 Dec 2024 09:31:56 -0800 Subject: [PATCH] Add node support to wallet.sh (#16) --- wallet.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wallet.sh b/wallet.sh index 03f1b55..b36e934 100755 --- a/wallet.sh +++ b/wallet.sh @@ -147,6 +147,10 @@ wait_for_network_sync() { } load_wallet() { + if [[ -z "${WALLET_NAME}" ]]; then + echo "WARN: WALLET_NAME is not set" + return + fi bitcoin-cli -named createwallet wallet_name=${WALLET_NAME} disable_private_keys=true load_on_startup=true descriptors=false || echo "wallet exists" sleep 5 bitcoin-cli loadwallet ${WALLET_NAME} || echo "wallet already loaded"