mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-23 03:59:36 +00:00
advance trade state on payment sent ack
This commit is contained in:
parent
f875479311
commit
be90b317f2
1 changed files with 2 additions and 0 deletions
|
@ -660,6 +660,8 @@ public abstract class TradeProtocol implements DecryptedDirectMessageListener, D
|
||||||
if (ackMessage.getSourceMsgClassName().equals(PaymentSentMessage.class.getSimpleName())) {
|
if (ackMessage.getSourceMsgClassName().equals(PaymentSentMessage.class.getSimpleName())) {
|
||||||
if (trade.getTradePeer(sender) == trade.getSeller()) {
|
if (trade.getTradePeer(sender) == trade.getSeller()) {
|
||||||
processModel.setPaymentSentAckMessage(ackMessage);
|
processModel.setPaymentSentAckMessage(ackMessage);
|
||||||
|
trade.setStateIfValidTransitionTo(Trade.State.SELLER_RECEIVED_PAYMENT_SENT_MSG);
|
||||||
|
processModel.getTradeManager().requestPersistence();
|
||||||
} else if (trade.getTradePeer(sender) == trade.getArbitrator()) {
|
} else if (trade.getTradePeer(sender) == trade.getArbitrator()) {
|
||||||
processModel.setPaymentSentAckMessageArbitrator(ackMessage);
|
processModel.setPaymentSentAckMessageArbitrator(ackMessage);
|
||||||
} else if (!ackMessage.isSuccess()) {
|
} else if (!ackMessage.isSuccess()) {
|
||||||
|
|
Loading…
Reference in a new issue