Remove duplicates of DEFAULT_JSON_RPC_APIS (#218)

Matt Gucci 6 years ago committed by Lucas Saldanha
parent c53dd6e3b3
commit 35e808d723
  1. 3
      ethereum/jsonrpc/src/main/java/tech/pegasys/pantheon/ethereum/jsonrpc/JsonRpcConfiguration.java
  2. 2
      pantheon/src/test/java/tech/pegasys/pantheon/cli/PantheonCommandTest.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<RpcApi> DEFAULT_JSON_RPC_APIS =
Arrays.asList(RpcApis.ETH, RpcApis.NET, RpcApis.WEB3);
private boolean enabled;
private int port;

@ -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);

Loading…
Cancel
Save