Skip to content

Commit

Permalink
prevent SystemAddress from being recorded as new account in firehose
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Jan 12, 2024
1 parent 2d818b8 commit 20d92db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions firehose/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
ethmath "github.com/ethereum/go-ethereum/common/math"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/params"
"go.uber.org/atomic"
)

Expand Down Expand Up @@ -766,6 +767,9 @@ func (ctx *Context) RecordNewAccount(addr common.Address) {
if ctx == nil {
return
}
if addr.Cmp(params.SystemAddress) == 0 {
return
}

ctx.printer.Print("CREATED_ACCOUNT",
ctx.callIndex(),
Expand Down

0 comments on commit 20d92db

Please sign in to comment.