fix deposit tx not found error when confirmed before relayed (#1942)

This commit is contained in:
woodser 2025-09-05 06:35:34 -04:00 committed by GitHub
parent 0c1e4f31af
commit 5f3e366920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,7 +180,11 @@ public class ArbitratorProcessDepositRequest extends TradeTask {
}
// relay txs
monerod.relayTxsByHash(txHashes);
try {
monerod.relayTxsByHash(txHashes); // call will error if txs are already confirmed, but they're still relayed
} catch (Exception e) {
log.warn("Error relaying deposit txs: " + e.getMessage());
}
depositTxsRelayed = true;
// update trade state