mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Refactoring: Rename CheckIfPeerIsBanned to ApplyFilter
This commit is contained in:
parent
3b613bebce
commit
830e693ace
@ -23,7 +23,7 @@ import bisq.core.trade.messages.DepositTxPublishedMessage;
|
||||
import bisq.core.trade.messages.PayDepositRequest;
|
||||
import bisq.core.trade.messages.PayoutTxPublishedMessage;
|
||||
import bisq.core.trade.messages.TradeMessage;
|
||||
import bisq.core.trade.protocol.tasks.CheckIfPeerIsBanned;
|
||||
import bisq.core.trade.protocol.tasks.ApplyFilter;
|
||||
import bisq.core.trade.protocol.tasks.PublishTradeStatistics;
|
||||
import bisq.core.trade.protocol.tasks.VerifyPeersAccountAgeWitness;
|
||||
import bisq.core.trade.protocol.tasks.buyer.BuyerProcessPayoutTxPublishedMessage;
|
||||
@ -129,7 +129,7 @@ public class BuyerAsMakerProtocol extends TradeProtocol implements BuyerProtocol
|
||||
});
|
||||
taskRunner.addTasks(
|
||||
MakerProcessPayDepositRequest.class,
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
MakerVerifyTakerAccount.class,
|
||||
VerifyPeersAccountAgeWitness.class,
|
||||
MakerVerifyTakerFeePayment.class,
|
||||
@ -186,7 +186,7 @@ public class BuyerAsMakerProtocol extends TradeProtocol implements BuyerProtocol
|
||||
handleTaskRunnerFault(errorMessage);
|
||||
});
|
||||
taskRunner.addTasks(
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
MakerVerifyTakerAccount.class,
|
||||
MakerVerifyTakerFeePayment.class,
|
||||
BuyerAsMakerSignPayoutTx.class,
|
||||
|
@ -23,7 +23,7 @@ import bisq.core.trade.Trade;
|
||||
import bisq.core.trade.messages.PayoutTxPublishedMessage;
|
||||
import bisq.core.trade.messages.PublishDepositTxRequest;
|
||||
import bisq.core.trade.messages.TradeMessage;
|
||||
import bisq.core.trade.protocol.tasks.CheckIfPeerIsBanned;
|
||||
import bisq.core.trade.protocol.tasks.ApplyFilter;
|
||||
import bisq.core.trade.protocol.tasks.PublishTradeStatistics;
|
||||
import bisq.core.trade.protocol.tasks.VerifyPeersAccountAgeWitness;
|
||||
import bisq.core.trade.protocol.tasks.buyer.BuyerProcessPayoutTxPublishedMessage;
|
||||
@ -145,7 +145,7 @@ public class BuyerAsTakerProtocol extends TradeProtocol implements BuyerProtocol
|
||||
errorMessage -> handleTaskRunnerFault(tradeMessage, errorMessage));
|
||||
taskRunner.addTasks(
|
||||
TakerProcessPublishDepositTxRequest.class,
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
TakerVerifyMakerAccount.class,
|
||||
VerifyPeersAccountAgeWitness.class,
|
||||
TakerVerifyMakerFeePayment.class,
|
||||
@ -179,7 +179,7 @@ public class BuyerAsTakerProtocol extends TradeProtocol implements BuyerProtocol
|
||||
handleTaskRunnerFault(errorMessage);
|
||||
});
|
||||
taskRunner.addTasks(
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
TakerVerifyMakerAccount.class,
|
||||
TakerVerifyMakerFeePayment.class,
|
||||
BuyerAsMakerSignPayoutTx.class,
|
||||
|
@ -24,7 +24,7 @@ import bisq.core.trade.messages.CounterCurrencyTransferStartedMessage;
|
||||
import bisq.core.trade.messages.DepositTxPublishedMessage;
|
||||
import bisq.core.trade.messages.PayDepositRequest;
|
||||
import bisq.core.trade.messages.TradeMessage;
|
||||
import bisq.core.trade.protocol.tasks.CheckIfPeerIsBanned;
|
||||
import bisq.core.trade.protocol.tasks.ApplyFilter;
|
||||
import bisq.core.trade.protocol.tasks.PublishTradeStatistics;
|
||||
import bisq.core.trade.protocol.tasks.VerifyPeersAccountAgeWitness;
|
||||
import bisq.core.trade.protocol.tasks.maker.MakerCreateAndSignContract;
|
||||
@ -125,7 +125,7 @@ public class SellerAsMakerProtocol extends TradeProtocol implements SellerProtoc
|
||||
|
||||
taskRunner.addTasks(
|
||||
MakerProcessPayDepositRequest.class,
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
MakerVerifyTakerAccount.class,
|
||||
VerifyPeersAccountAgeWitness.class,
|
||||
SellerVerifiesPeersAccountAge.class,
|
||||
@ -207,7 +207,7 @@ public class SellerAsMakerProtocol extends TradeProtocol implements SellerProtoc
|
||||
});
|
||||
|
||||
taskRunner.addTasks(
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
MakerVerifyTakerAccount.class,
|
||||
MakerVerifyTakerFeePayment.class,
|
||||
SellerSignAndFinalizePayoutTx.class,
|
||||
@ -232,7 +232,7 @@ public class SellerAsMakerProtocol extends TradeProtocol implements SellerProtoc
|
||||
});
|
||||
|
||||
taskRunner.addTasks(
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
MakerVerifyTakerAccount.class,
|
||||
MakerVerifyTakerFeePayment.class,
|
||||
SellerSendPayoutTxPublishedMessage.class
|
||||
|
@ -23,7 +23,7 @@ import bisq.core.trade.Trade;
|
||||
import bisq.core.trade.messages.CounterCurrencyTransferStartedMessage;
|
||||
import bisq.core.trade.messages.PublishDepositTxRequest;
|
||||
import bisq.core.trade.messages.TradeMessage;
|
||||
import bisq.core.trade.protocol.tasks.CheckIfPeerIsBanned;
|
||||
import bisq.core.trade.protocol.tasks.ApplyFilter;
|
||||
import bisq.core.trade.protocol.tasks.PublishTradeStatistics;
|
||||
import bisq.core.trade.protocol.tasks.VerifyPeersAccountAgeWitness;
|
||||
import bisq.core.trade.protocol.tasks.seller.SellerBroadcastPayoutTx;
|
||||
@ -138,7 +138,7 @@ public class SellerAsTakerProtocol extends TradeProtocol implements SellerProtoc
|
||||
|
||||
taskRunner.addTasks(
|
||||
TakerProcessPublishDepositTxRequest.class,
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
TakerVerifyMakerAccount.class,
|
||||
VerifyPeersAccountAgeWitness.class,
|
||||
SellerVerifiesPeersAccountAge.class,
|
||||
@ -194,7 +194,7 @@ public class SellerAsTakerProtocol extends TradeProtocol implements SellerProtoc
|
||||
});
|
||||
|
||||
taskRunner.addTasks(
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
TakerVerifyMakerAccount.class,
|
||||
TakerVerifyMakerFeePayment.class,
|
||||
SellerSignAndFinalizePayoutTx.class,
|
||||
@ -219,7 +219,7 @@ public class SellerAsTakerProtocol extends TradeProtocol implements SellerProtoc
|
||||
});
|
||||
|
||||
taskRunner.addTasks(
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
TakerVerifyMakerAccount.class,
|
||||
TakerVerifyMakerFeePayment.class,
|
||||
SellerSendPayoutTxPublishedMessage.class
|
||||
|
@ -30,9 +30,9 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
@Slf4j
|
||||
public class CheckIfPeerIsBanned extends TradeTask {
|
||||
public class ApplyFilter extends TradeTask {
|
||||
@SuppressWarnings({"WeakerAccess", "unused"})
|
||||
public CheckIfPeerIsBanned(TaskRunner taskHandler, Trade trade) {
|
||||
public ApplyFilter(TaskRunner taskHandler, Trade trade) {
|
||||
super(taskHandler, trade);
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ import bisq.core.offer.availability.tasks.SendOfferAvailabilityRequest;
|
||||
import bisq.core.offer.placeoffer.tasks.AddToOfferBook;
|
||||
import bisq.core.offer.placeoffer.tasks.CreateMakerFeeTx;
|
||||
import bisq.core.offer.placeoffer.tasks.ValidateOffer;
|
||||
import bisq.core.trade.protocol.tasks.CheckIfPeerIsBanned;
|
||||
import bisq.core.trade.protocol.tasks.ApplyFilter;
|
||||
import bisq.core.trade.protocol.tasks.PublishTradeStatistics;
|
||||
import bisq.core.trade.protocol.tasks.buyer.BuyerSendCounterCurrencyTransferStartedMessage;
|
||||
import bisq.core.trade.protocol.tasks.buyer.BuyerSetupPayoutTxListener;
|
||||
@ -107,7 +107,7 @@ public class DebugView extends InitializableView<GridPane, Void> {
|
||||
addGroup("BuyerAsMakerProtocol",
|
||||
FXCollections.observableArrayList(Arrays.asList(
|
||||
MakerProcessPayDepositRequest.class,
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
MakerVerifyTakerAccount.class,
|
||||
MakerVerifyTakerFeePayment.class,
|
||||
MakerCreateAndSignContract.class,
|
||||
@ -120,7 +120,7 @@ public class DebugView extends InitializableView<GridPane, Void> {
|
||||
MakerVerifyTakerFeePayment.class,
|
||||
PublishTradeStatistics.class,
|
||||
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
MakerVerifyTakerAccount.class,
|
||||
MakerVerifyTakerFeePayment.class,
|
||||
BuyerAsMakerSignPayoutTx.class,
|
||||
@ -137,7 +137,7 @@ public class DebugView extends InitializableView<GridPane, Void> {
|
||||
TakerSendPayDepositRequest.class,
|
||||
|
||||
TakerProcessPublishDepositTxRequest.class,
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
TakerVerifyMakerAccount.class,
|
||||
TakerVerifyMakerFeePayment.class,
|
||||
TakerVerifyAndSignContract.class,
|
||||
@ -148,7 +148,7 @@ public class DebugView extends InitializableView<GridPane, Void> {
|
||||
TakerVerifyMakerAccount.class,
|
||||
TakerVerifyMakerFeePayment.class,
|
||||
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
TakerVerifyMakerAccount.class,
|
||||
TakerVerifyMakerFeePayment.class,
|
||||
SellerSignAndFinalizePayoutTx.class,
|
||||
@ -164,14 +164,14 @@ public class DebugView extends InitializableView<GridPane, Void> {
|
||||
TakerSendPayDepositRequest.class,
|
||||
|
||||
TakerProcessPublishDepositTxRequest.class,
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
TakerVerifyMakerAccount.class,
|
||||
TakerVerifyMakerFeePayment.class,
|
||||
TakerVerifyAndSignContract.class,
|
||||
BuyerAsTakerSignAndPublishDepositTx.class,
|
||||
TakerSendDepositTxPublishedMessage.class,
|
||||
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
TakerVerifyMakerAccount.class,
|
||||
TakerVerifyMakerFeePayment.class,
|
||||
BuyerAsMakerSignPayoutTx.class,
|
||||
@ -181,7 +181,7 @@ public class DebugView extends InitializableView<GridPane, Void> {
|
||||
addGroup("SellerAsMakerProtocol",
|
||||
FXCollections.observableArrayList(Arrays.asList(
|
||||
MakerProcessPayDepositRequest.class,
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
MakerVerifyTakerAccount.class,
|
||||
MakerVerifyTakerFeePayment.class,
|
||||
MakerCreateAndSignContract.class,
|
||||
@ -198,7 +198,7 @@ public class DebugView extends InitializableView<GridPane, Void> {
|
||||
MakerVerifyTakerAccount.class,
|
||||
MakerVerifyTakerFeePayment.class,
|
||||
|
||||
CheckIfPeerIsBanned.class,
|
||||
ApplyFilter.class,
|
||||
MakerVerifyTakerAccount.class,
|
||||
MakerVerifyTakerFeePayment.class,
|
||||
SellerSignAndFinalizePayoutTx.class,
|
||||
|
Loading…
Reference in New Issue
Block a user