joininbox/scripts/menu.freeze.sh

29 lines
627 B
Bash
Raw Normal View History

2020-06-17 11:06:34 +01:00
#!/bin/bash
2020-06-22 15:25:23 +01:00
source /home/joinmarket/joinin.conf
source /home/joinmarket/_functions.sh
2020-06-17 11:06:34 +01:00
2020-06-22 15:15:28 +01:00
chooseWallet
2020-06-17 11:06:34 +01:00
# get mixdepth
mixdepth=$(mktemp 2>/dev/null)
2020-06-17 11:06:34 +01:00
dialog --backtitle "Choose a mixdepth" \
--inputbox "Enter a number between 0 to 4 to choose the mixdepth" 8 60 2> "$mixdepth"
2020-06-17 11:06:34 +01:00
openMenuIfCancelled $?
if [ "${RPCoverTor}" = "on" ]; then
tor="torify"
2020-06-17 14:52:34 +01:00
else
tor=""
2020-06-17 14:52:34 +01:00
fi
clear
2020-06-22 14:11:58 +01:00
# display
echo "Running the command:
$tor python wallet-tool.py -m$(cat "$mixdepth") \
$(sed "s#$walletPath##g" < "$wallet") freeze
"
2020-06-22 14:11:58 +01:00
# run
$tor python ~/joinmarket-clientserver/scripts/wallet-tool.py \
-m"$(cat "$mixdepth")" "$(cat "$wallet")" freeze