Skip to content

Commit

Permalink
Add node support to wallet.sh (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera authored Dec 17, 2024
1 parent 0b9ee2f commit 1f61e90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1f61e90

Please sign in to comment.