From bf5d1f78bade6f82417dfa7f52c6f02d60054a6a Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Thu, 11 Nov 2021 17:55:28 -0800 Subject: [PATCH] [rpc] disable trace api in rpc --- rpc/rpc.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpc/rpc.go b/rpc/rpc.go index ee9afbc7cf..90886a44ed 100644 --- a/rpc/rpc.go +++ b/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"),