From 882f1c070a045e3ab7c54336eebb8bce620aceed Mon Sep 17 00:00:00 2001 From: woodser Date: Mon, 23 Jan 2023 16:30:58 -0500 Subject: [PATCH] fetch deposit txs unless cached and confirmed --- core/src/main/java/bisq/core/trade/Trade.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/bisq/core/trade/Trade.java b/core/src/main/java/bisq/core/trade/Trade.java index b0987dcdb9..b931820c0a 100644 --- a/core/src/main/java/bisq/core/trade/Trade.java +++ b/core/src/main/java/bisq/core/trade/Trade.java @@ -866,7 +866,7 @@ public abstract class Trade implements Tradable, Model { public MoneroTx getTakerDepositTx() { String depositTxHash = getProcessModel().getTaker().getDepositTxHash(); try { - if (getTaker().getDepositTx() == null) getTaker().setDepositTx(depositTxHash == null ? null : getXmrWalletService().getTxWithCache(depositTxHash)); + if (getTaker().getDepositTx() == null || !getTaker().getDepositTx().isConfirmed()) getTaker().setDepositTx(depositTxHash == null ? null : getXmrWalletService().getTxWithCache(depositTxHash)); return getTaker().getDepositTx(); } catch (MoneroError e) { log.error("Wallet is missing taker deposit tx " + depositTxHash); @@ -878,7 +878,7 @@ public abstract class Trade implements Tradable, Model { public MoneroTx getMakerDepositTx() { String depositTxHash = getProcessModel().getMaker().getDepositTxHash(); try { - if (getMaker().getDepositTx() == null) getMaker().setDepositTx(depositTxHash == null ? null : getXmrWalletService().getTxWithCache(depositTxHash)); + if (getMaker().getDepositTx() == null || !getMaker().getDepositTx().isConfirmed()) getMaker().setDepositTx(depositTxHash == null ? null : getXmrWalletService().getTxWithCache(depositTxHash)); return getMaker().getDepositTx(); } catch (MoneroError e) { log.error("Wallet is missing maker deposit tx " + depositTxHash);