Dont allow opening refudn agent dispute if delayed payout tx is invalid.

This commit is contained in:
chimp1984 2020-09-11 17:00:24 -05:00
parent 4f1cbbd00e
commit 2b0433870c
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -554,7 +554,14 @@ public class PendingTradesDataModel extends ActivatableDataModel {
// The peer sent us an invalid donation address. We do not return here as we don't want to break
// mediation/arbitration and log only the issue. The dispute agent will run validation as well and will get
// a popup displayed to react.
log.error("Donation address invalid. {}", e.toString());
log.error("DelayedPayoutTxValidation failed. {}", e.toString());
if (useRefundAgent) {
// We don't allow to continue and publish payout tx and open refund agent case.
// In case it was caused by some bug we want to prevent a wrong payout. In case its a scam attempt we
// want to protect the refund agent.
return;
}
}
ResultHandler resultHandler;