From be90b317f2821c888fdb5a44ddee095c24fe494a Mon Sep 17 00:00:00 2001 From: woodser Date: Mon, 19 Feb 2024 19:12:27 -0500 Subject: [PATCH] advance trade state on payment sent ack --- .../src/main/java/haveno/core/trade/protocol/TradeProtocol.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/haveno/core/trade/protocol/TradeProtocol.java b/core/src/main/java/haveno/core/trade/protocol/TradeProtocol.java index 2b9bea2c17..157e10be9d 100644 --- a/core/src/main/java/haveno/core/trade/protocol/TradeProtocol.java +++ b/core/src/main/java/haveno/core/trade/protocol/TradeProtocol.java @@ -660,6 +660,8 @@ public abstract class TradeProtocol implements DecryptedDirectMessageListener, D if (ackMessage.getSourceMsgClassName().equals(PaymentSentMessage.class.getSimpleName())) { if (trade.getTradePeer(sender) == trade.getSeller()) { processModel.setPaymentSentAckMessage(ackMessage); + trade.setStateIfValidTransitionTo(Trade.State.SELLER_RECEIVED_PAYMENT_SENT_MSG); + processModel.getTradeManager().requestPersistence(); } else if (trade.getTradePeer(sender) == trade.getArbitrator()) { processModel.setPaymentSentAckMessageArbitrator(ackMessage); } else if (!ackMessage.isSuccess()) {