advance trade state on payment sent ack

This commit is contained in:
woodser 2024-02-19 19:12:27 -05:00
parent f875479311
commit be90b317f2

View File

@ -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()) {