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(); trade.requestPersistence();
// process payout tx unless already unlocked // process payout tx unless already published
if (!trade.isPayoutUnlocked()) processPayoutTx(message); if (!trade.isPayoutPublished()) processPayoutTx(message);
// close open disputes // close open disputes
if (trade.isPayoutPublished() && trade.getDisputeState().ordinal() >= Trade.DisputeState.DISPUTE_REQUESTED.ordinal()) { if (trade.isPayoutPublished() && trade.getDisputeState().ordinal() >= Trade.DisputeState.DISPUTE_REQUESTED.ordinal()) {