remove taker fee tx check on pending trades initialized

This commit is contained in:
woodser 2022-12-20 16:14:49 +00:00
parent e4046bd84e
commit 3a50397a61
3 changed files with 0 additions and 29 deletions

View file

@ -223,32 +223,6 @@ public class PendingTradesViewModel extends ActivatableWithDataModel<PendingTrad
messageStateProperty.set(messageState); messageStateProperty.set(messageState);
} }
public void checkTakerFeeTx(Trade trade) {
log.warn("PendingTradesViewModel.checkTakerFeeTx() needs adapted to XMR");
return; // TODO (woodser): PendingTradesViewModel.checkTakerFeeTx() needs adapted to XMR, use common TradeDataValidation utility
// mempoolStatus.setValue(-1);
// mempoolService.validateOfferTakerTx(trade, (txValidator -> {
// mempoolStatus.setValue(txValidator.isFail() ? 0 : 1);
// if (txValidator.isFail()) {
// String errorMessage = "Validation of Taker Tx returned: " + txValidator.toString();
// log.warn(errorMessage);
// // prompt user to open mediation
// if (trade.getDisputeState() == Trade.DisputeState.NO_DISPUTE) {
// UserThread.runAfter(() -> {
// Popup popup = new Popup();
// popup.headLine(Res.get("portfolio.pending.openSupportTicket.headline"))
// .message(Res.get("portfolio.pending.invalidTx", errorMessage))
// .actionButtonText(Res.get("portfolio.pending.openSupportTicket.headline"))
// .onAction(dataModel::onOpenSupportTicket)
// .closeButtonText(Res.get("shared.cancel"))
// .onClose(popup::hide)
// .show();
// }, 100, TimeUnit.MILLISECONDS);
// }
// }
// }));
}
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
// Getters // Getters
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////

View file

@ -222,8 +222,6 @@ public class BuyerStep2View extends TradeStepView {
@Override @Override
protected void onPendingTradesInitialized() { protected void onPendingTradesInitialized() {
super.onPendingTradesInitialized(); super.onPendingTradesInitialized();
//validatePayoutTx(); // TODO (woodser): no payout tx in xmr integration, do something else?
model.checkTakerFeeTx(trade);
} }

View file

@ -65,7 +65,6 @@ public class SellerStep2View extends TradeStepView {
@Override @Override
protected void onPendingTradesInitialized() { protected void onPendingTradesInitialized() {
super.onPendingTradesInitialized(); super.onPendingTradesInitialized();
model.checkTakerFeeTx(trade);
} }
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////