[rpc] disable trace api in rpc

pull/3928/head
Jacky Wang 3 years ago
parent 791c9d2018
commit bf5d1f78ba
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 8
      rpc/rpc.go

@ -129,8 +129,8 @@ 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
//NewPublicTraceAPI(hmy, Debug), // Debug version means geth trace rpc
//NewPublicTraceAPI(hmy, Trace), // Trace version means parity trace rpc
}
}
@ -157,8 +157,8 @@ 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
//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"),

Loading…
Cancel
Save