Skip to content

Commit

Permalink
fix: include pending txs in balance calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
obycode committed Oct 3, 2024
1 parent b9a45b3 commit 153d7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ services:
fi
# Check this Stacks miner's Bitcoin balance and top it up if it is low
BALANCE=$$(bitcoin-cli -rpcconnect=bitcoind -rpcwallet="$${wallet_name}" getbalances | jq .watchonly.trusted)
BALANCE=$$(bitcoin-cli -rpcconnect=bitcoind -rpcwallet="$${wallet_name}" getbalances | jq '.watchonly.trusted + .watchonly.untrusted_pending')
BALANCE=$${BALANCE:-0}
if (( $$(echo "$${BALANCE} < 0.1" | bc -l) )); then
Expand Down

0 comments on commit 153d7d1

Please sign in to comment.