Skip to content

Commit

Permalink
Do not display confirmation icon for 0 BTC tx
Browse files Browse the repository at this point in the history
If we do not get any BTC from a mediated payout tx we do not know about
the confirmation state so it would stay always in the unconfirmed state.
To avoid that confusion we prefer to hide the icon. This is a known
issue from BitcoinJ but we have not found a solution for that yet.
  • Loading branch information
chimp1984 authored and ripcurlx committed Dec 2, 2019
1 parent 04c0258 commit 5fa88cc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ public void onTransactionConfidenceChanged(TransactionConfidence confidence) {
} else if (trade.getPayoutTx() != null &&
trade.getPayoutTx().getHashAsString().equals(txId)) {
details = Res.get("funds.tx.multiSigPayout", tradeId);

if (amountAsCoin.isZero()) {
txConfidenceIndicator.setVisible(false);
}
} else {
Trade.DisputeState disputeState = trade.getDisputeState();
if (disputeState == Trade.DisputeState.DISPUTE_CLOSED) {
Expand Down

0 comments on commit 5fa88cc

Please sign in to comment.