add missed registration

This commit is contained in:
Yaroslav Dmytrotsa 2015-07-06 10:39:31 +03:00
parent df60b74193
commit 56cfca4667
1 changed files with 8 additions and 0 deletions

View File

@ -69,6 +69,14 @@ public class proxy extends JsonRpcServerMethod {
deprecatedMethods.add("eth_submitWork");
}
@Override
public String[] handledRequests() {
ArrayList<String> tmp = new ArrayList<String>();
tmp.addAll(proxyMethods);
tmp.addAll(deprecatedMethods);
return tmp.toArray(new String[tmp.size()]);
}
@Override
public JSONRPC2Response process(JSONRPC2Request req, MessageContext ctx) {
if (proxyMethods.contains(req.getMethod())) {