This commit is contained in:
Alex Sharov 2023-02-09 13:27:45 +07:00 committed by GitHub
parent 145f689e78
commit c31824ee17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

2
go.mod
View File

@ -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

4
go.sum
View File

@ -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=

View File

@ -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()