Skip to content

Commit 5cc5509

Browse files
committed
set trade error on missing deposit or payout txs
1 parent 2356457 commit 5cc5509

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/java/haveno/core/trade/Trade.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2994,6 +2994,7 @@ private void onPayoutInvalidated() {
29942994
log.warn("Resetting state of {} {} from {} to {} because payout is unpublished", getClass().getSimpleName(), getId(), getState(), Trade.State.SELLER_CONFIRMED_PAYMENT_RECEIPT);
29952995
setState(State.SELLER_CONFIRMED_PAYMENT_RECEIPT);
29962996
}
2997+
setErrorMessage("The payout transaction is missing for trade " + getShortId() + ". This may be due to a blockchain reorganization.\n\nIf the payout does not confirm automatically, you can open a dispute or mark this trade as failed.");
29972998
}
29982999

29993000
/**
@@ -3128,6 +3129,7 @@ private void setDepositTxs(List<MoneroTxWallet> txs) {
31283129
State depositsState = getDepositsState();
31293130
if (!isPaymentSent() && depositsState.ordinal() < getState().ordinal()) {
31303131
log.warn("Reverting deposits state to {} for {} {}. Possible reorg?", depositsState, getClass().getSimpleName(), getShortId());
3132+
if (depositsState == State.ARBITRATOR_PUBLISHED_DEPOSIT_TXS) setErrorMessage("The deposit transactions are missing for trade " + getShortId() + ". This may be due to a blockchain reorganization.\n\nIf the issue persists, you can mark this trade as failed.");
31313133
setState(depositsState);
31323134
}
31333135

0 commit comments

Comments
 (0)