skip processing payout tx if already published

This commit is contained in:
woodser 2024-05-07 16:48:09 -04:00
parent adf7348515
commit d64ee42154

View File

@ -94,8 +94,8 @@ public class ProcessPaymentReceivedMessage extends TradeTask {
}
trade.requestPersistence();
// process payout tx unless already unlocked
if (!trade.isPayoutUnlocked()) processPayoutTx(message);
// process payout tx unless already published
if (!trade.isPayoutPublished()) processPayoutTx(message);
// close open disputes
if (trade.isPayoutPublished() && trade.getDisputeState().ordinal() >= Trade.DisputeState.DISPUTE_REQUESTED.ordinal()) {