Skip to content

Commit

Permalink
[api]disable debug trace api before archive mode is enabled (#4240)
Browse files Browse the repository at this point in the history
  • Loading branch information
millken authored Apr 19, 2024
1 parent d811c0d commit d816082
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions api/web3server.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,11 @@ func (svr *web3Handler) handleWeb3Req(ctx context.Context, web3Req *gjson.Result
res, err = svr.subscribe(web3Req, writer)
case "eth_unsubscribe":
res, err = svr.unsubscribe(web3Req)
case "debug_traceTransaction":
res, err = svr.traceTransaction(ctx, web3Req)
case "debug_traceCall":
res, err = svr.traceCall(ctx, web3Req)
//TODO: enable debug api after archive mode is supported
// case "debug_traceTransaction":
// res, err = svr.traceTransaction(ctx, web3Req)
// case "debug_traceCall":
// res, err = svr.traceCall(ctx, web3Req)
case "eth_coinbase", "eth_getUncleCountByBlockHash", "eth_getUncleCountByBlockNumber",
"eth_sign", "eth_signTransaction", "eth_sendTransaction", "eth_getUncleByBlockHashAndIndex",
"eth_getUncleByBlockNumberAndIndex", "eth_pendingTransactions":
Expand Down

0 comments on commit d816082

Please sign in to comment.