From bc4d8fc8c2613db68a2c1f89aa2553763389ea4d Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 27 Dec 2023 16:44:06 -0500 Subject: [PATCH] split output tx is null while awaiting scheduled tx --- core/src/main/java/haveno/core/offer/OpenOfferManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/haveno/core/offer/OpenOfferManager.java b/core/src/main/java/haveno/core/offer/OpenOfferManager.java index 9150c645..f14e4078 100644 --- a/core/src/main/java/haveno/core/offer/OpenOfferManager.java +++ b/core/src/main/java/haveno/core/offer/OpenOfferManager.java @@ -926,10 +926,8 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe if (earliestUnscheduledTx != null) return earliestUnscheduledTx; } - // return scheduled tx if already assigned - if (openOffer.getScheduledTxHashes() != null) { - return xmrWalletService.getWallet().getTx(openOffer.getScheduledTxHashes().get(0)); - } + // return if awaiting scheduled tx + if (openOffer.getScheduledTxHashes() != null) return null; // cache all transactions including from pool List allTxs = xmrWalletService.getWallet().getTxs(new MoneroTxQuery().setIncludeOutputs(true));