From 537652f0551bfbdd8b4368588c114ce104aa4e88 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Mon, 8 Mar 2021 22:37:46 -0600 Subject: [PATCH] Admin bitcoin-cli works in testnet mode now --- rootfs/standard/usr/bin/mynode_post_bitcoin.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rootfs/standard/usr/bin/mynode_post_bitcoin.sh b/rootfs/standard/usr/bin/mynode_post_bitcoin.sh index e2bf315b..9054f3d7 100755 --- a/rootfs/standard/usr/bin/mynode_post_bitcoin.sh +++ b/rootfs/standard/usr/bin/mynode_post_bitcoin.sh @@ -10,6 +10,12 @@ sleep 60s cp -f /mnt/hdd/mynode/bitcoin/.cookie /home/admin/.bitcoin/.cookie chown admin:admin /home/admin/.bitcoin/.cookie +if [ -f /mnt/hdd/mynode/bitcoin/testnet3/.cookie ]; then + mkdir -p /mnt/hdd/mynode/bitcoin/testnet3 + cp -f /mnt/hdd/mynode/bitcoin/testnet3/.cookie /home/admin/.bitcoin/testnet3/.cookie + chown -R admin:admin /home/admin/.bitcoin/testnet3 +fi + # Make default wallets bitcoin-cli createwallet joinmarket_wallet.dat > /dev/null 2>&1 || true bitcoin-cli loadwallet joinmarket_wallet.dat > /dev/null 2>&1 || true