2020-06-17 11:06:34 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2020-06-22 15:25:23 +01:00
|
|
|
source /home/joinmarket/joinin.conf
|
2020-09-30 13:58:32 +01:00
|
|
|
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
|
2020-09-09 09:50:47 +01:00
|
|
|
mixdepth=$(mktemp 2>/dev/null)
|
2020-06-17 11:06:34 +01:00
|
|
|
dialog --backtitle "Choose a mixdepth" \
|
2020-09-09 09:50:47 +01:00
|
|
|
--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 $?
|
|
|
|
|
|
2020-09-09 09:50:47 +01:00
|
|
|
if [ "${RPCoverTor}" = "on" ]; then
|
2020-06-21 00:44:29 +01:00
|
|
|
tor="torify"
|
2020-06-17 14:52:34 +01:00
|
|
|
else
|
2020-06-21 00:44:29 +01:00
|
|
|
tor=""
|
2020-06-17 14:52:34 +01:00
|
|
|
fi
|
2020-06-21 00:44:29 +01:00
|
|
|
|
|
|
|
|
clear
|
2020-06-22 14:11:58 +01:00
|
|
|
# display
|
2020-06-21 00:44:29 +01:00
|
|
|
echo "Running the command:
|
2020-09-09 09:50:47 +01:00
|
|
|
$tor python wallet-tool.py -m$(cat "$mixdepth") \
|
|
|
|
|
$(sed "s#$walletPath##g" < "$wallet") freeze
|
2020-06-21 00:44:29 +01:00
|
|
|
"
|
2020-06-22 14:11:58 +01:00
|
|
|
# run
|
2020-07-16 13:03:31 +01:00
|
|
|
$tor python ~/joinmarket-clientserver/scripts/wallet-tool.py \
|
2020-09-09 09:50:47 +01:00
|
|
|
-m"$(cat "$mixdepth")" "$(cat "$wallet")" freeze
|