mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 20:42:41 +02:00
Merge pull request #1328 from openoms/testnet-fixes
testnet: fix bitcoind wallet setting
This commit is contained in:
@@ -36,9 +36,11 @@ fi
|
|||||||
###################
|
###################
|
||||||
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||||
|
|
||||||
if ! grep -Eq "^wallet=wallet.dat" /mnt/hdd/${network}/${network}.conf; then
|
# specify wallet.dat for mainnet to avoid error on testnet
|
||||||
echo "Enable the multiwallet feature in ${network} core and specify wallet.dat"
|
sudo sed -i "s/^wallet=wallet.dat/main.wallet=wallet.dat/g" /mnt/hdd/${network}/${network}.conf
|
||||||
echo "wallet=wallet.dat" | sudo tee -a /mnt/hdd/${network}/${network}.conf >/dev/null
|
if ! grep -Eq "^${chain}.wallet=wallet.dat" /mnt/hdd/${network}/${network}.conf; then
|
||||||
|
echo "Enable the multiwallet feature in ${network} core ${chain}net and specify wallet.dat"
|
||||||
|
echo "${chain}.wallet=wallet.dat" | sudo tee -a /mnt/hdd/${network}/${network}.conf >/dev/null
|
||||||
restartService=1
|
restartService=1
|
||||||
else
|
else
|
||||||
echo "Multiwallet is active and wallet.dat is used."
|
echo "Multiwallet is active and wallet.dat is used."
|
||||||
|
Reference in New Issue
Block a user