|
|
@ -32,23 +32,23 @@ function isMainnet(){ |
|
|
|
|
|
|
|
function switchToMainnet { |
|
|
|
echo "switching to mainnet" |
|
|
|
sed -i 's/^testnet=1/#testnet=1/g' $NETWORK_CONFIG |
|
|
|
sed -i 's/^testnet=1/#testnet=1/g' $NETWORK_TEMPLATE |
|
|
|
sed -i 's/^${network}.testnet=1/#${network}.testnet=1/g' $LND_CONFIG |
|
|
|
sed -i 's/^#${network}.mainnet=1/${network}.mainnet=1/g' $LND_CONFIG |
|
|
|
sed -i 's/^${network}.testnet=1/#${network}.testnet=1/g' $LND_TEMPLATE |
|
|
|
sed -i 's/^#${network}.mainnet=1/${network}.mainnet=1/g' $LND_TEMPLATE |
|
|
|
sed -i "s/^testnet=1/#testnet=1/g" $NETWORK_CONFIG |
|
|
|
sed -i "s/^testnet=1/#testnet=1/g" $NETWORK_TEMPLATE |
|
|
|
sed -i "s/^${network}.testnet=1/#${network}.testnet=1/g" $LND_CONFIG |
|
|
|
sed -i "s/^#${network}.mainnet=1/${network}.mainnet=1/g" $LND_CONFIG |
|
|
|
sed -i "s/^${network}.testnet=1/#${network}.testnet=1/g" $LND_TEMPLATE |
|
|
|
sed -i "s/^#${network}.mainnet=1/${network}.mainnet=1/g" $LND_TEMPLATE |
|
|
|
echo "OK switched to mainnet" |
|
|
|
} |
|
|
|
|
|
|
|
function switchToTestnet { |
|
|
|
echo "switching to testnet" |
|
|
|
sed -i 's/^#testnet=1/testnet=1/g' $NETWORK_CONFIG |
|
|
|
sed -i 's/^#testnet=1/testnet=1/g' $NETWORK_TEMPLATE |
|
|
|
sed -i 's/^#${network}.testnet=1/${network}.testnet=1/g' $LND_CONFIG |
|
|
|
sed -i 's/^${network}.mainnet=1/#${network}.mainnet=1/g' $LND_CONFIG |
|
|
|
sed -i 's/^#${network}.testnet=1/${network}.testnet=1/g' $LND_TEMPLATE |
|
|
|
sed -i 's/^${network}.mainnet=1/#${network}.mainnet=1/g' $LND_TEMPLATE |
|
|
|
sed -i "s/^#testnet=1/testnet=1/g" $NETWORK_CONFIG |
|
|
|
sed -i "s/^#testnet=1/testnet=1/g" $NETWORK_TEMPLATE |
|
|
|
sed -i "s/^#${network}.testnet=1/${network}.testnet=1/g" $LND_CONFIG |
|
|
|
sed -i "s/^${network}.mainnet=1/#${network}.mainnet=1/g" $LND_CONFIG |
|
|
|
sed -i "s/^#${network}.testnet=1/${network}.testnet=1/g" $LND_TEMPLATE |
|
|
|
sed -i "s/^${network}.mainnet=1/#${network}.mainnet=1/g" $LND_TEMPLATE |
|
|
|
echo "OK switched to testnet" |
|
|
|
} |
|
|
|
|
|
|
|