From e9cd776a76f2d507c3c8865638eb536933044338 Mon Sep 17 00:00:00 2001 From: Fausto Spoto Date: Thu, 19 Dec 2024 14:05:39 +0100 Subject: [PATCH] Fixed exceptions --- .../src/test/java/io/hotmoka/tests/HotmokaTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/io-hotmoka-tests/src/test/java/io/hotmoka/tests/HotmokaTest.java b/io-hotmoka-tests/src/test/java/io/hotmoka/tests/HotmokaTest.java index fbcae7b88..a5cbacda1 100644 --- a/io-hotmoka-tests/src/test/java/io/hotmoka/tests/HotmokaTest.java +++ b/io-hotmoka-tests/src/test/java/io/hotmoka/tests/HotmokaTest.java @@ -104,6 +104,7 @@ import io.mokamint.miner.local.LocalMiners; import io.mokamint.node.Peers; import io.mokamint.node.api.PeerRejectedException; +import io.mokamint.node.local.ApplicationTimeoutException; import io.mokamint.node.local.LocalNodeConfigBuilders; import io.mokamint.node.service.PublicNodeServices; import io.mokamint.nonce.Prologs; @@ -341,7 +342,7 @@ private static Node mkTendermintNode() throws NodeException, InterruptedExceptio * moka start-mokamint --keys CYcdCR4S1zVojhFsB7cxpYsudqBhvRMoXRhFCtwcnUg9.pem --keys-of-plot 5BYtHQ3XaygM7yjJ4vaaftA5AJAC56GNkLrDj4yQ46Wh.pem --plot plot.plot --mokamint-port 8031 --port 8002 */ @SuppressWarnings("unused") - private static Node mkMokamintNodeConnectedToPeer() throws NodeException, InterruptedException, InvalidKeyException, SignatureException, TimeoutException { + private static Node mkMokamintNodeConnectedToPeer() throws NodeException, InterruptedException, InvalidKeyException, SignatureException, ApplicationTimeoutException, TimeoutException { try { consensus = fillConsensusConfig(ValidatorsConsensusConfigBuilders.defaults()).build(); @@ -398,7 +399,7 @@ private static Node mkMokamintNodeConnectedToPeer() throws NodeException, Interr } @SuppressWarnings("unused") - private static Node mkMokamintNetwork(int howManyNodes) throws NodeException, InterruptedException, TimeoutException, TransactionRejectedException, TransactionException, CodeExecutionException { + private static Node mkMokamintNetwork(int howManyNodes) throws NodeException, InterruptedException, TimeoutException, ApplicationTimeoutException, TransactionRejectedException, TransactionException, CodeExecutionException { if (howManyNodes < 1) throw new IllegalArgumentException("A network needs at least a node"); @@ -489,7 +490,7 @@ private static Node mkMokamintNetwork(int howManyNodes) throws NodeException, In return nodes.get(0); } - catch (IOException | NoSuchAlgorithmException | io.mokamint.node.api.NodeException | DeploymentException | InvalidKeyException | SignatureException e) { + catch (IOException | NoSuchAlgorithmException | io.mokamint.node.api.NodeException | DeploymentException | InvalidKeyException e) { throw new NodeException(e); } }