Skip to content

Commit

Permalink
fix(exporter): lower execution payload exporter max batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
invis-bitfly authored Dec 16, 2024
1 parent 84f1b04 commit fec55f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/pkg/exporter/modules/execution_payloads_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ func (d *executionPayloadsExporter) maintainTable() (err error) {
minBlock := uint64(blocks.MinBlock.Int64)
maxBlock := uint64(blocks.MaxBlock.Int64)

// limit to 1mil blocks to prevent reading too much from bigtable
if maxBlock-minBlock > 1e6 {
maxBlock = minBlock + 1e6
// limit to 200k blocks to prevent reading too much from bigtable
if maxBlock-minBlock > 200_000 {
maxBlock = minBlock + 200_000
}

log.Infof("min block: %v, max block: %v", blocks.MinBlock, blocks.MaxBlock)
Expand Down

0 comments on commit fec55f3

Please sign in to comment.