|
|
|
@ -128,10 +128,10 @@ func StopServers() error { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func getAuthAPIs(hmy *hmy.Harmony, debugEnable bool, rateLimiterEnable bool, ratelimit int) []rpc.API { |
|
|
|
|
return []rpc.API{ |
|
|
|
|
//NewPublicTraceAPI(hmy, Debug), // Debug version means geth trace rpc
|
|
|
|
|
//NewPublicTraceAPI(hmy, Trace), // Trace version means parity trace rpc
|
|
|
|
|
} |
|
|
|
|
return append(getAPIs(hmy, debugEnable, rateLimiterEnable, ratelimit), []rpc.API{ |
|
|
|
|
NewPublicTraceAPI(hmy, Debug), // Debug version means geth trace rpc
|
|
|
|
|
NewPublicTraceAPI(hmy, Trace), // Trace version means parity trace rpc
|
|
|
|
|
}...) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// getAPIs returns all the API methods for the RPC interface
|
|
|
|
@ -157,8 +157,6 @@ func getAPIs(hmy *hmy.Harmony, debugEnable bool, rateLimiterEnable bool, ratelim |
|
|
|
|
NewPublicStakingAPI(hmy, V2), |
|
|
|
|
NewPublicDebugAPI(hmy, V1), |
|
|
|
|
NewPublicDebugAPI(hmy, V2), |
|
|
|
|
//NewPublicTraceAPI(hmy, Debug), // Debug version means geth trace rpc
|
|
|
|
|
//NewPublicTraceAPI(hmy, Trace), // Trace version means parity trace rpc
|
|
|
|
|
// Legacy methods (subject to removal)
|
|
|
|
|
v1.NewPublicLegacyAPI(hmy, "hmy"), |
|
|
|
|
eth.NewPublicEthService(hmy, "eth"), |
|
|
|
|