Skip to content

Commit

Permalink
checkRPCwallet before related scripts
Browse files Browse the repository at this point in the history
fixes: #36
  • Loading branch information
openoms committed May 9, 2021
1 parent 8ca1319 commit 562e349
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/menu.payjoin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
source /home/joinmarket/joinin.conf
source /home/joinmarket/_functions.sh

checkRPCwallet

function receivePayJoin() {

# wallet
Expand Down
3 changes: 2 additions & 1 deletion scripts/menu.quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
source /home/joinmarket/joinin.conf
source /home/joinmarket/_functions.sh

checkRPCwallet

function cacheAndShowQR() {
# cache wallet data
walletData=$(mktemp -p /dev/shm/)
Expand Down Expand Up @@ -65,7 +67,6 @@ case $CHOICE in
GEN)
menu_GEN;;
m0)
checkRPCwallet
# wallet
chooseWallet
cacheAndShowQR
Expand Down
2 changes: 2 additions & 0 deletions scripts/menu.send.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
source /home/joinmarket/joinin.conf
source /home/joinmarket/_functions.sh

checkRPCwallet

# wallet
chooseWallet

Expand Down
2 changes: 2 additions & 0 deletions scripts/menu.yg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
source /home/joinmarket/_functions.sh
source /home/joinmarket/joinin.conf

checkRPCwallet

# add default value to joinin config if needed
if ! grep -Eq "^YGwallet=" $joininConfPath; then
echo "YGwallet=nil" >> $joininConfPath
Expand Down

0 comments on commit 562e349

Please sign in to comment.