Skip to content

Commit

Permalink
Erigon has a bug do not merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Oct 25, 2024
1 parent e14d631 commit f63778a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/apps/chifra/pkg/rpc/get_traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ import (

// GetTracesByBlockNumber returns a slice of traces in the given block
func (conn *Connection) GetTracesByBlockNumber(bn base.Blknum) ([]types.Trace, error) {
// TODO: HUGE HACK. Erigon has a bug at block 21030627. We wrote an issue to Erigon
// TODO: and should re-run the scraper here once it's fixed.
// TODO: https://github.com/erigontech/erigon/issues/12473
if bn == 21030627 {
return []types.Trace{{
Action: &types.TraceAction{},
Result: &types.TraceResult{},
}}, nil
}

if conn.StoreReadable() {
// walk.Cache_Traces
traceGroup := &types.TraceGroup{
Expand Down

0 comments on commit f63778a

Please sign in to comment.