mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Remove daoFacade as unused parameter
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
cfc67dcc9c
commit
e8c6b0ae14
8 changed files with 0 additions and 15 deletions
|
@ -403,7 +403,6 @@ public abstract class DisputeManager<T extends DisputeList<Dispute>> extends Sup
|
|||
TradeDataValidation.validateDelayedPayoutTx(trade,
|
||||
trade.getDelayedPayoutTx(),
|
||||
dispute,
|
||||
daoFacade,
|
||||
btcWalletService);
|
||||
DisputeValidation.validateDonationAddress(dispute,
|
||||
Objects.requireNonNull(trade.getDelayedPayoutTx()),
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
package bisq.core.trade.bisq_v1;
|
||||
|
||||
import bisq.core.btc.wallet.BtcWalletService;
|
||||
import bisq.core.dao.DaoFacade;
|
||||
import bisq.core.offer.Offer;
|
||||
import bisq.core.support.dispute.Dispute;
|
||||
import bisq.core.support.dispute.DisputeValidation;
|
||||
|
@ -45,14 +44,12 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
|||
public class TradeDataValidation {
|
||||
public static void validateDelayedPayoutTx(Trade trade,
|
||||
Transaction delayedPayoutTx,
|
||||
DaoFacade daoFacade,
|
||||
BtcWalletService btcWalletService)
|
||||
throws DisputeValidation.AddressException, MissingTxException,
|
||||
InvalidTxException, InvalidLockTimeException, InvalidAmountException {
|
||||
validateDelayedPayoutTx(trade,
|
||||
delayedPayoutTx,
|
||||
null,
|
||||
daoFacade,
|
||||
btcWalletService,
|
||||
null);
|
||||
}
|
||||
|
@ -60,21 +57,18 @@ public class TradeDataValidation {
|
|||
public static void validateDelayedPayoutTx(Trade trade,
|
||||
Transaction delayedPayoutTx,
|
||||
@Nullable Dispute dispute,
|
||||
DaoFacade daoFacade,
|
||||
BtcWalletService btcWalletService)
|
||||
throws DisputeValidation.AddressException, MissingTxException,
|
||||
InvalidTxException, InvalidLockTimeException, InvalidAmountException {
|
||||
validateDelayedPayoutTx(trade,
|
||||
delayedPayoutTx,
|
||||
dispute,
|
||||
daoFacade,
|
||||
btcWalletService,
|
||||
null);
|
||||
}
|
||||
|
||||
public static void validateDelayedPayoutTx(Trade trade,
|
||||
Transaction delayedPayoutTx,
|
||||
DaoFacade daoFacade,
|
||||
BtcWalletService btcWalletService,
|
||||
@Nullable Consumer<String> addressConsumer)
|
||||
throws DisputeValidation.AddressException, MissingTxException,
|
||||
|
@ -82,7 +76,6 @@ public class TradeDataValidation {
|
|||
validateDelayedPayoutTx(trade,
|
||||
delayedPayoutTx,
|
||||
null,
|
||||
daoFacade,
|
||||
btcWalletService,
|
||||
addressConsumer);
|
||||
}
|
||||
|
@ -90,7 +83,6 @@ public class TradeDataValidation {
|
|||
public static void validateDelayedPayoutTx(Trade trade,
|
||||
Transaction delayedPayoutTx,
|
||||
@Nullable Dispute dispute,
|
||||
DaoFacade daoFacade,
|
||||
BtcWalletService btcWalletService,
|
||||
@Nullable Consumer<String> addressConsumer)
|
||||
throws DisputeValidation.AddressException, MissingTxException,
|
||||
|
|
|
@ -45,7 +45,6 @@ public class BuyerVerifiesFinalDelayedPayoutTx extends TradeTask {
|
|||
// Check again tx
|
||||
TradeDataValidation.validateDelayedPayoutTx(trade,
|
||||
delayedPayoutTx,
|
||||
processModel.getDaoFacade(),
|
||||
processModel.getBtcWalletService());
|
||||
|
||||
// Now as we know the deposit tx we can also verify the input
|
||||
|
|
|
@ -41,7 +41,6 @@ public class BuyerVerifiesPreparedDelayedPayoutTx extends TradeTask {
|
|||
var preparedDelayedPayoutTx = processModel.getPreparedDelayedPayoutTx();
|
||||
TradeDataValidation.validateDelayedPayoutTx(trade,
|
||||
preparedDelayedPayoutTx,
|
||||
processModel.getDaoFacade(),
|
||||
processModel.getBtcWalletService());
|
||||
|
||||
// If the deposit tx is non-malleable, we already know its final ID, so should check that now
|
||||
|
|
|
@ -56,7 +56,6 @@ public class SellerCreatesDelayedPayoutTx extends TradeTask {
|
|||
lockTime);
|
||||
TradeDataValidation.validateDelayedPayoutTx(trade,
|
||||
preparedDelayedPayoutTx,
|
||||
processModel.getDaoFacade(),
|
||||
processModel.getBtcWalletService());
|
||||
|
||||
processModel.setPreparedDelayedPayoutTx(preparedDelayedPayoutTx);
|
||||
|
|
|
@ -516,7 +516,6 @@ public class PendingTradesDataModel extends ActivatableDataModel {
|
|||
try {
|
||||
TradeDataValidation.validateDelayedPayoutTx(trade,
|
||||
delayedPayoutTx,
|
||||
daoFacade,
|
||||
btcWalletService,
|
||||
donationAddressString::set);
|
||||
} catch (TradeDataValidation.ValidationException | DisputeValidation.ValidationException e) {
|
||||
|
|
|
@ -85,7 +85,6 @@ public class BuyerStep1View extends TradeStepView {
|
|||
try {
|
||||
TradeDataValidation.validateDelayedPayoutTx(trade,
|
||||
trade.getDelayedPayoutTx(),
|
||||
model.dataModel.daoFacade,
|
||||
model.dataModel.btcWalletService);
|
||||
} catch (TradeDataValidation.MissingTxException ignore) {
|
||||
// We don't react on those errors as a failed trade might get listed initially but getting removed from the
|
||||
|
|
|
@ -720,7 +720,6 @@ public class BuyerStep2View extends TradeStepView {
|
|||
try {
|
||||
TradeDataValidation.validateDelayedPayoutTx(trade,
|
||||
trade.getDelayedPayoutTx(),
|
||||
model.dataModel.daoFacade,
|
||||
model.dataModel.btcWalletService);
|
||||
} catch (TradeDataValidation.MissingTxException ignore) {
|
||||
// We don't react on those errors as a failed trade might get listed initially but getting removed from the
|
||||
|
|
Loading…
Add table
Reference in a new issue