clear payout info on payout error for reprocessing

This commit is contained in:
woodser 2025-11-19 11:37:12 -05:00
parent e7d39f9bdf
commit 8ef279522d
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF

View file

@ -3575,7 +3575,8 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
paymentReceivedNackSender.setPaymentReceivedMessage(null); paymentReceivedNackSender.setPaymentReceivedMessage(null);
paymentReceivedNackSender.setPaymentReceivedMessageState(MessageState.NACKED); paymentReceivedNackSender.setPaymentReceivedMessageState(MessageState.NACKED);
} }
if (!isPayoutPublished()) { if (!isPayoutFinalized()) { // payout tx may be stale and show as published after reorg, so clear local info for reprocessing until finalized
log.warn("Resetting missing or failed payout tx after payout error for {} {}", getClass().getSimpleName(), getId());
getSelf().setUnsignedPayoutTxHex(null); getSelf().setUnsignedPayoutTxHex(null);
setPayoutTxHex(null); setPayoutTxHex(null);
setPayoutTxId(null); setPayoutTxId(null);