Skip to content

Commit

Permalink
e3: metric steps in db. on chain-tip (#10538)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored May 29, 2024
1 parent da059e5 commit 4604ad0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/stagedsync/stage_execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"time"

"github.com/c2h5oh/datasize"
"github.com/ledgerwatch/erigon/core/rawdb/rawdbhelpers"
"github.com/ledgerwatch/log/v3"
"golang.org/x/sync/errgroup"

Expand Down Expand Up @@ -856,6 +857,8 @@ func PruneExecutionStage(s *PruneState, tx kv.RwTx, cfg ExecuteBlockCfg, ctx con
defer tx.Rollback()
}

execStepsInDB.Set(rawdbhelpers.IdxStepsCountV3(tx) * 100)

logEvery := time.NewTicker(logInterval)
defer logEvery.Stop()

Expand Down

0 comments on commit 4604ad0

Please sign in to comment.