Skip to content

Commit

Permalink
Fixed exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
spoto committed Dec 19, 2024
1 parent e40919f commit e9cd776
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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");

Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit e9cd776

Please sign in to comment.