Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Jan 26, 2025
1 parent 8572d8a commit 00d1ded
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cl/antiquary/antiquary.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"sync/atomic"
"time"

"github.com/c2h5oh/datasize"
"github.com/erigontech/erigon-lib/kv/mdbx"
"golang.org/x/sync/semaphore"

Expand Down Expand Up @@ -183,7 +184,7 @@ func (a *Antiquary) Loop() error {
for i := from; i < a.sn.BlocksAvailable(); i++ {
// read the snapshot
SpaceDirty, txSize, err := tx.(*mdbx.MdbxTx).SpaceDirty()
log.Warn("[dbg] iter", "i", i, "dirt", SpaceDirty, "txSize", txSize, "err", err)
log.Warn("[dbg] iter", "i", i, "dirt", datasize.ByteSize(SpaceDirty).HumanReadable(), "txSize", txSize, "err", err)
header, elBlockNumber, elBlockHash, err := a.sn.ReadHeader(i)
if err != nil {
return err
Expand Down

0 comments on commit 00d1ded

Please sign in to comment.