Skip to content

Commit

Permalink
Fix random failures with ricochet send
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsk committed Dec 19, 2023
1 parent 83b2771 commit 85dea14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ricochet-send.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ rawtx="$(show_tx_by_id "$txid")"
#echo "$rawtx"
vout_idx=""
idx=0
while read -r vout_address; do
while read -u 3 -r vout_address; do
if [ "$vout_address" == "${ricochet_addresses[0]}" ]; then
vout_idx=$idx
value="$(echo "$rawtx" | jq -r ".vout[$vout_idx].value")"
Expand All @@ -121,7 +121,7 @@ while read -r vout_address; do
fi
fi
((idx++))
done <<< "$(get_decoded_tx_addresses "$rawtx")"
done 3< <(get_decoded_tx_addresses "$rawtx")
if [ "$prev_pubkey" == "" ]; then
echoerr "$rawtx"
echoerr "FATAL: Can't find the right vout in the first transaction, please fill a bug report!"
Expand Down

0 comments on commit 85dea14

Please sign in to comment.