diff --git a/go.mod b/go.mod index 7f0236525..848cea7c6 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ledgerwatch/erigon go 1.18 require ( - github.com/ledgerwatch/erigon-lib v0.0.0-20230209041907-52c880a50ddc + github.com/ledgerwatch/erigon-lib v0.0.0-20230209052732-dce672859cf3 github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230120022649-cd9409a200da github.com/ledgerwatch/log/v3 v3.7.0 github.com/ledgerwatch/secp256k1 v1.0.0 diff --git a/go.sum b/go.sum index 76dda0ec3..3a24099f8 100644 --- a/go.sum +++ b/go.sum @@ -556,8 +556,8 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v0.0.0-20170224010052-a616ab194758 h1:0D5M2HQSGD3PYPwICLl+/9oulQauOuETfgFvhBDffs0= github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c= github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= -github.com/ledgerwatch/erigon-lib v0.0.0-20230209041907-52c880a50ddc h1:4zenW7DdnbnVc58STGobDbqMb4PToeN5w8xIUw7pgtA= -github.com/ledgerwatch/erigon-lib v0.0.0-20230209041907-52c880a50ddc/go.mod h1:0C8ZJf2FL/BUqCJq5NrbZr0mq88yi8xXl3OTwLLBC9o= +github.com/ledgerwatch/erigon-lib v0.0.0-20230209052732-dce672859cf3 h1:Oyseyl3DKlnt1JM0NEjcdENdho5/zGK7H5y5CljdyPM= +github.com/ledgerwatch/erigon-lib v0.0.0-20230209052732-dce672859cf3/go.mod h1:0C8ZJf2FL/BUqCJq5NrbZr0mq88yi8xXl3OTwLLBC9o= github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230120022649-cd9409a200da h1:lQQBOHzAUThkymfXJj/m07vAjyMx9XoMMy3OomaeOrA= github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230120022649-cd9409a200da/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo= github.com/ledgerwatch/log/v3 v3.7.0 h1:aFPEZdwZx4jzA3+/Pf8wNDN5tCI0cIolq/kfvgcM+og= diff --git a/turbo/snapshotsync/block_snapshots.go b/turbo/snapshotsync/block_snapshots.go index b9ed80345..a951f4505 100644 --- a/turbo/snapshotsync/block_snapshots.go +++ b/turbo/snapshotsync/block_snapshots.go @@ -1716,11 +1716,7 @@ func TransactionsIdx(ctx context.Context, chainID uint256.Int, blockFrom, blockT if err != nil { return err } - idxLogLvl := log.LvlDebug - if d.Count() > 1_000_000 { - idxLogLvl = log.LvlInfo - } - txnHashIdx.LogLvl(idxLogLvl) + txnHashIdx.LogLvl(log.LvlDebug) txnHash2BlockNumIdx.LogLvl(log.LvlDebug) parseCtx := types2.NewTxParseContext(chainID) @@ -1901,7 +1897,7 @@ func Idx(ctx context.Context, d *compress.Decompressor, firstDataID uint64, tmpD if err != nil { return err } - rs.LogLvl(lvl) + rs.LogLvl(log.LvlDebug) defer d.EnableMadvNormal().DisableReadAhead()