Admin bitcoin-cli works in testnet mode now

This commit is contained in:
Taylor Helsper 2021-03-08 22:37:46 -06:00
parent 2528f52751
commit 537652f055

View File

@ -10,6 +10,12 @@ sleep 60s
cp -f /mnt/hdd/mynode/bitcoin/.cookie /home/admin/.bitcoin/.cookie cp -f /mnt/hdd/mynode/bitcoin/.cookie /home/admin/.bitcoin/.cookie
chown admin:admin /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 # Make default wallets
bitcoin-cli createwallet joinmarket_wallet.dat > /dev/null 2>&1 || true bitcoin-cli createwallet joinmarket_wallet.dat > /dev/null 2>&1 || true
bitcoin-cli loadwallet joinmarket_wallet.dat > /dev/null 2>&1 || true bitcoin-cli loadwallet joinmarket_wallet.dat > /dev/null 2>&1 || true