mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-16 08:14:15 -05:00
payment sent message must be processed before confirming payment receipt
This commit is contained in:
parent
d607508eee
commit
2612f032c6
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ public class SellerProtocol extends DisputeProtocol {
|
|||
log.info(TradeProtocol.LOG_HIGHLIGHT + "SellerProtocol.onPaymentReceived() for {} {}", trade.getClass().getSimpleName(), trade.getShortId());
|
||||
|
||||
// advance trade state
|
||||
if (trade.isPaymentSent() || trade.isPaymentReceived()) {
|
||||
if (trade.getState() == Trade.State.BUYER_SENT_PAYMENT_SENT_MSG || trade.isPaymentReceived()) {
|
||||
trade.setStateIfValidTransitionTo(Trade.State.SELLER_CONFIRMED_PAYMENT_RECEIPT);
|
||||
} else {
|
||||
errorMessageHandler.handleErrorMessage("Cannot confirm payment received for " + trade.getClass().getSimpleName() + " " + trade.getShortId() + " in state " + trade.getState());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue