Skip to content

Commit 4f6a9d3

Browse files
ktechmidasktechmidas
and
ktechmidas
authored
fix: add wallet to remix script (#621)
Co-authored-by: ktechmidas <[email protected]>
1 parent 5ecbc1b commit 4f6a9d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22

3-
result=$(dash-cli getbalances)
3+
result=$(dash-cli -rpcwallet={{coinjoin_wallet_name}} getbalances)
44
coinjoin_value=$(echo "$result" | jq '.mine.coinjoin')
55

66
# Check if coinjoin_value is greater than remix_amount (default 30)
77
if (( $(echo "$coinjoin_value > {{ remix_amount }}" | bc -l) )); then
8-
dash-cli sendtoaddress {{ mixers[inventory_hostname].owner.address }} {{ remix_amount }} "" "" true true true 2>&1 | /dash/timestamp.sh >> /dash/remix.cron.log
8+
dash-cli -rpcwallet={{coinjoin_wallet_name}} sendtoaddress {{ mixers[inventory_hostname].owner.address }} {{ remix_amount }} "" "" true true true 2>&1 | /dash/timestamp.sh >> /dash/remix.cron.log
99
fi

0 commit comments

Comments
 (0)