Skip to content

Commit

Permalink
Disable debug_traceCall RPC for prebedrock
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw109550 committed Jul 11, 2023
1 parent 8ee2131 commit afc6e2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/rpcdaemon/commands/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package commands
import (
"context"
"encoding/json"
"errors"
"fmt"
"math/big"
"time"
Expand Down Expand Up @@ -317,6 +318,10 @@ func (api *PrivateDebugAPIImpl) TraceCall(ctx context.Context, args ethapi.CallA
return fmt.Errorf("get block number: %v", err)
}

if chainConfig.IsOptimismPreBedrock(blockNumber) {
return errors.New("l2geth does not have a debug_traceCall method")
}

err = api.BaseAPI.checkPruneHistory(dbtx, blockNumber)
if err != nil {
return err
Expand Down

0 comments on commit afc6e2b

Please sign in to comment.