From 35e808d72395bf95ef92a660987845ddb13a5c4a Mon Sep 17 00:00:00 2001 From: Matt Gucci Date: Thu, 1 Nov 2018 21:24:27 +0900 Subject: [PATCH] Remove duplicates of DEFAULT_JSON_RPC_APIS (#218) --- .../pantheon/ethereum/jsonrpc/JsonRpcConfiguration.java | 3 --- .../java/tech/pegasys/pantheon/cli/PantheonCommandTest.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ethereum/jsonrpc/src/main/java/tech/pegasys/pantheon/ethereum/jsonrpc/JsonRpcConfiguration.java b/ethereum/jsonrpc/src/main/java/tech/pegasys/pantheon/ethereum/jsonrpc/JsonRpcConfiguration.java index 3116965b70..627fab32a7 100644 --- a/ethereum/jsonrpc/src/main/java/tech/pegasys/pantheon/ethereum/jsonrpc/JsonRpcConfiguration.java +++ b/ethereum/jsonrpc/src/main/java/tech/pegasys/pantheon/ethereum/jsonrpc/JsonRpcConfiguration.java @@ -13,7 +13,6 @@ package tech.pegasys.pantheon.ethereum.jsonrpc; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collection; import java.util.Collections; @@ -23,8 +22,6 @@ import com.google.common.base.Objects; public class JsonRpcConfiguration { public static final String DEFAULT_JSON_RPC_HOST = "127.0.0.1"; public static final int DEFAULT_JSON_RPC_PORT = 8545; - public static final Collection DEFAULT_JSON_RPC_APIS = - Arrays.asList(RpcApis.ETH, RpcApis.NET, RpcApis.WEB3); private boolean enabled; private int port; diff --git a/pantheon/src/test/java/tech/pegasys/pantheon/cli/PantheonCommandTest.java b/pantheon/src/test/java/tech/pegasys/pantheon/cli/PantheonCommandTest.java index 8acf33d587..9e0f982646 100644 --- a/pantheon/src/test/java/tech/pegasys/pantheon/cli/PantheonCommandTest.java +++ b/pantheon/src/test/java/tech/pegasys/pantheon/cli/PantheonCommandTest.java @@ -237,7 +237,7 @@ public class PantheonCommandTest extends CommandTestAbstract { jsonRpcConfiguration.setHost("5.6.7.8"); jsonRpcConfiguration.setPort(5678); jsonRpcConfiguration.setCorsAllowedDomains(Collections.emptyList()); - jsonRpcConfiguration.setRpcApis(JsonRpcConfiguration.DEFAULT_JSON_RPC_APIS); + jsonRpcConfiguration.setRpcApis(RpcApis.DEFAULT_JSON_RPC_APIS); jsonRpcConfiguration.addRpcApi(CliqueRpcApis.CLIQUE); jsonRpcConfiguration.addRpcApi(IbftRpcApis.IBFT);