From b5b7e86323ef98961a1d418cefe9a7ac8b74e5eb Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Tue, 7 Dec 2021 19:39:22 -0500 Subject: [PATCH] Increase trade protocol timeout from 60 sec to 120 sec --- .../core/trade/protocol/bisq_v1/BuyerAsMakerProtocol.java | 4 ++-- .../core/trade/protocol/bisq_v1/BuyerAsTakerProtocol.java | 6 +++--- .../core/trade/protocol/bisq_v1/SellerAsMakerProtocol.java | 4 ++-- .../core/trade/protocol/bisq_v1/SellerAsTakerProtocol.java | 4 ++-- .../bisq/core/trade/protocol/bisq_v1/SellerProtocol.java | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/src/main/java/bisq/core/trade/protocol/bisq_v1/BuyerAsMakerProtocol.java b/core/src/main/java/bisq/core/trade/protocol/bisq_v1/BuyerAsMakerProtocol.java index 16d47b59b3c..8f161351aa9 100644 --- a/core/src/main/java/bisq/core/trade/protocol/bisq_v1/BuyerAsMakerProtocol.java +++ b/core/src/main/java/bisq/core/trade/protocol/bisq_v1/BuyerAsMakerProtocol.java @@ -85,7 +85,7 @@ public void handleTakeOfferRequest(InputsForDepositTxRequest message, errorMessageHandler.handleErrorMessage(errorMessage); handleTaskRunnerFault(message, errorMessage); })) - .withTimeout(60)) + .withTimeout(120)) .executeTasks(); } @@ -105,7 +105,7 @@ protected void handle(DelayedPayoutTxSignatureRequest message, NodeAddress peer) BuyerSignsDelayedPayoutTx.class, BuyerFinalizesDelayedPayoutTx.class, BuyerSendsDelayedPayoutTxSignatureResponse.class) - .withTimeout(60)) + .withTimeout(120)) .executeTasks(); } diff --git a/core/src/main/java/bisq/core/trade/protocol/bisq_v1/BuyerAsTakerProtocol.java b/core/src/main/java/bisq/core/trade/protocol/bisq_v1/BuyerAsTakerProtocol.java index a99e4be0809..8a1d927eef4 100644 --- a/core/src/main/java/bisq/core/trade/protocol/bisq_v1/BuyerAsTakerProtocol.java +++ b/core/src/main/java/bisq/core/trade/protocol/bisq_v1/BuyerAsTakerProtocol.java @@ -82,7 +82,7 @@ public void onTakeOffer() { CreateTakerFeeTx.class, BuyerAsTakerCreatesDepositTxInputs.class, TakerSendInputsForDepositTxRequest.class) - .withTimeout(60)) + .withTimeout(120)) .run(() -> { processModel.setTempTradingPeerNodeAddress(trade.getTradingPeerNodeAddress()); processModel.getTradeManager().requestPersistence(); @@ -106,7 +106,7 @@ private void handle(InputsForDepositTxResponse message, NodeAddress peer) { BuyerAsTakerSignsDepositTx.class, BuyerSetupDepositTxListener.class, BuyerAsTakerSendsDepositTxMessage.class) - .withTimeout(60)) + .withTimeout(120)) .executeTasks(); } @@ -120,7 +120,7 @@ protected void handle(DelayedPayoutTxSignatureRequest message, NodeAddress peer) BuyerSignsDelayedPayoutTx.class, BuyerFinalizesDelayedPayoutTx.class, BuyerSendsDelayedPayoutTxSignatureResponse.class) - .withTimeout(60)) + .withTimeout(120)) .executeTasks(); } diff --git a/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerAsMakerProtocol.java b/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerAsMakerProtocol.java index 53a7722f300..97841a715c0 100644 --- a/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerAsMakerProtocol.java +++ b/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerAsMakerProtocol.java @@ -85,7 +85,7 @@ public void handleTakeOfferRequest(InputsForDepositTxRequest message, errorMessageHandler.handleErrorMessage(errorMessage); handleTaskRunnerFault(message, errorMessage); })) - .withTimeout(60)) + .withTimeout(120)) .executeTasks(); } @@ -105,7 +105,7 @@ protected void handle(DepositTxMessage message, NodeAddress peer) { SellerCreatesDelayedPayoutTx.class, SellerSignsDelayedPayoutTx.class, SellerSendDelayedPayoutTxSignatureRequest.class) - .withTimeout(60)) + .withTimeout(120)) .executeTasks(); } diff --git a/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerAsTakerProtocol.java b/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerAsTakerProtocol.java index 4cacf30098d..8044ebf1d4e 100644 --- a/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerAsTakerProtocol.java +++ b/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerAsTakerProtocol.java @@ -77,7 +77,7 @@ public void onTakeOffer() { CreateTakerFeeTx.class, SellerAsTakerCreatesDepositTxInputs.class, TakerSendInputsForDepositTxRequest.class) - .withTimeout(60)) + .withTimeout(120)) .executeTasks(); } @@ -99,7 +99,7 @@ private void handle(InputsForDepositTxResponse message, NodeAddress peer) { SellerCreatesDelayedPayoutTx.class, SellerSignsDelayedPayoutTx.class, SellerSendDelayedPayoutTxSignatureRequest.class) - .withTimeout(60)) + .withTimeout(120)) .executeTasks(); } diff --git a/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerProtocol.java b/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerProtocol.java index 68a587e6e46..a3e4fd90d6f 100644 --- a/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerProtocol.java +++ b/core/src/main/java/bisq/core/trade/protocol/bisq_v1/SellerProtocol.java @@ -97,7 +97,7 @@ protected void handle(ShareBuyerPaymentAccountMessage message, NodeAddress peer) VerifyPeersAccountAgeWitness.class)) .run(() -> { // We stop timeout here and don't start a new one as the - // SellerSendsDepositTxAndDelayedPayoutTxMessage repeats the send the message and has it's own + // SellerSendsDepositTxAndDelayedPayoutTxMessage repeats to send the message and has it's own // timeout if it never succeeds. stopTimeout(); })