Skip to content

Commit 79057e9

Browse files
committed
fix deposit tx not found error when confirmed before relayed
1 parent 5bcd570 commit 79057e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/main/java/haveno/core/trade/protocol/tasks/ArbitratorProcessDepositRequest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ private void processDepositRequest() {
180180
}
181181

182182
// relay txs
183-
monerod.relayTxsByHash(txHashes);
183+
try {
184+
monerod.relayTxsByHash(txHashes); // call will error if txs are already confirmed, but they're still relayed
185+
} catch (Exception e) {
186+
log.warn("Error relaying deposit txs for trade {}. They could already be confirmed. Error={}", trade.getId(), e.getMessage());
187+
}
184188
depositTxsRelayed = true;
185189

186190
// update trade state

0 commit comments

Comments
 (0)