Skip to content

Commit

Permalink
Delete baseFeePerGas only pre-gingerbread
Browse files Browse the repository at this point in the history
  • Loading branch information
jcortejoso authored Jan 22, 2025
1 parent 0963700 commit 5bdc578
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions compat_test/compat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,12 +491,13 @@ func filterCeloBlock(blockNumber uint64, block map[string]interface{}, gingerbre
// We hardcoded the gas limit in celo for pre-gingerbread blocks, we don't have that in op-geth so we remove it
// from the celo block.
delete(block, "gasLimit")
// Some non archive nodes on mainnet have blocks with baseFeePerGas
if block["baseFeePerGas"] != nil {
delete(block, "baseFeePerGas")
fmt.Printf("WARN baseFeePerGas field in l1 block %d\n", blockNumber)
}
}
// Some non archive nodes on mainnet have blocks with baseFeePerGas
if block["baseFeePerGas"] != nil {
delete(block, "baseFeePerGas")
fmt.Printf("WARN baseFeePerGas field in l1 block %d\n", blockNumber)
}

transactions, ok := block["transactions"].([]interface{})
if ok {
for _, tx := range transactions {
Expand Down

0 comments on commit 5bdc578

Please sign in to comment.