|
|
@ -202,8 +202,7 @@ public class JsonRpcMethodsFactory { |
|
|
|
enabledMethods, |
|
|
|
enabledMethods, |
|
|
|
new NetVersion(protocolSchedule.getChainId()), |
|
|
|
new NetVersion(protocolSchedule.getChainId()), |
|
|
|
new NetListening(p2pNetwork), |
|
|
|
new NetListening(p2pNetwork), |
|
|
|
new NetPeerCount(p2pNetwork), |
|
|
|
new NetPeerCount(p2pNetwork)); |
|
|
|
new AdminPeers(p2pNetwork)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (rpcApis.contains(RpcApis.WEB3)) { |
|
|
|
if (rpcApis.contains(RpcApis.WEB3)) { |
|
|
|
addMethods(enabledMethods, new Web3ClientVersion(clientVersion), new Web3Sha3()); |
|
|
|
addMethods(enabledMethods, new Web3ClientVersion(clientVersion), new Web3Sha3()); |
|
|
@ -217,6 +216,9 @@ public class JsonRpcMethodsFactory { |
|
|
|
minerSetCoinbase, |
|
|
|
minerSetCoinbase, |
|
|
|
new MinerSetEtherbase(minerSetCoinbase)); |
|
|
|
new MinerSetEtherbase(minerSetCoinbase)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (rpcApis.contains(RpcApis.ADMIN)) { |
|
|
|
|
|
|
|
addMethods(enabledMethods, new AdminPeers(p2pNetwork)); |
|
|
|
|
|
|
|
} |
|
|
|
// @formatter:off
|
|
|
|
// @formatter:off
|
|
|
|
return enabledMethods; |
|
|
|
return enabledMethods; |
|
|
|
} |
|
|
|
} |
|
|
|