mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-18 13:08:52 +02:00
28 lines
629 B
Bash
Executable file
28 lines
629 B
Bash
Executable file
#!/bin/bash
|
|
|
|
source /home/joinmarket/joinin.conf
|
|
source /home/joinmarket/menu.functions.sh
|
|
|
|
chooseWallet
|
|
|
|
# get mixdepth
|
|
mixdepth=$(tempfile 2>/dev/null)
|
|
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) \
|
|
$(echo $(cat $wallet) | sed "s#$walletPath##g") freeze
|
|
"
|
|
# run
|
|
$tor python ~/joinmarket-clientserver/scripts/wallet-tool.py \
|
|
-m$(cat $mixdepth) $(cat $wallet) freeze
|