mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-14 12:43:13 +02:00
28 lines
628 B
Bash
Executable file
28 lines
628 B
Bash
Executable file
#!/bin/bash
|
|
|
|
source /home/joinmarket/joinin.conf
|
|
source /home/joinmarket/_functions.sh
|
|
|
|
chooseWallet
|
|
|
|
# get mixdepth
|
|
mixdepth=$(mktemp -p /dev/shm/)
|
|
dialog --backtitle "Choose a mixdepth" \
|
|
--inputbox "Enter a number between 0 to 4 to choose the mixdepth" 8 60 2> "$mixdepth"
|
|
openMenuIfCancelled $?
|
|
|
|
if [ "${RPCoverTor}" = "on" ]; then
|
|
tor="torify"
|
|
else
|
|
tor=""
|
|
fi
|
|
|
|
clear
|
|
# display
|
|
echo "Running the command:
|
|
$tor python wallet-tool.py -m$(cat "$mixdepth") \
|
|
$(sed "s#$walletPath##g" < "$wallet") freeze
|
|
"
|
|
# run
|
|
$tor python ~/joinmarket-clientserver/scripts/wallet-tool.py \
|
|
-m"$(cat "$mixdepth")" "$(cat "$wallet")" freeze
|