Correct tmp dir in integration (#5712)

Clean up after PR #5702.
This commit is contained in:
Andrew Ashikhmin 2022-10-12 11:18:17 +02:00 committed by GitHub
parent aa18b70f6d
commit 41187bf06f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -14,7 +14,6 @@ import (
common2 "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/common/cmp"
"github.com/ledgerwatch/erigon-lib/common/dir"
"github.com/ledgerwatch/erigon-lib/etl"
"github.com/ledgerwatch/erigon-lib/kv"
libstate "github.com/ledgerwatch/erigon-lib/state"
"github.com/ledgerwatch/log/v3"
@ -584,7 +583,7 @@ func stageBodies(db kv.RwDB, ctx context.Context) error {
}
func stageSenders(db kv.RwDB, ctx context.Context) error {
tmpdir := filepath.Join(datadirCli, etl.TmpDirName)
tmpdir := datadir.New(datadirCli).Tmp
_, _, sync, _, _ := newSync(ctx, db, nil)
chainConfig := fromdb.ChainConfig(db)
snapshots, _ := allSnapshots(db)

2
go.mod
View File

@ -4,7 +4,7 @@ go 1.18
require (
github.com/gballet/go-verkle v0.0.0-20220829125900-a702d458d33c
github.com/ledgerwatch/erigon-lib v0.0.0-20221012025225-8f74af203e59
github.com/ledgerwatch/erigon-lib v0.0.0-20221012084532-5ec6f1359d16
github.com/ledgerwatch/erigon-snapshot v1.0.1-0.20221010023441-7e1da3031ab0
github.com/ledgerwatch/log/v3 v3.4.2
github.com/ledgerwatch/secp256k1 v1.0.0

4
go.sum
View File

@ -563,8 +563,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-20221012025225-8f74af203e59 h1:PqX8sfT1PJpBcE6PpgzPQohjWJABjTwQg8yU4pBg0RM=
github.com/ledgerwatch/erigon-lib v0.0.0-20221012025225-8f74af203e59/go.mod h1:GT9MS8/L8VEWWJFsyJ3s5uhGyR4+rtws8KBgrWyrOwY=
github.com/ledgerwatch/erigon-lib v0.0.0-20221012084532-5ec6f1359d16 h1:wXuSC0kZ8ZzmgOIChaNTCaUaGx+IZl6XVTflHNHItmM=
github.com/ledgerwatch/erigon-lib v0.0.0-20221012084532-5ec6f1359d16/go.mod h1:GT9MS8/L8VEWWJFsyJ3s5uhGyR4+rtws8KBgrWyrOwY=
github.com/ledgerwatch/erigon-snapshot v1.0.1-0.20221010023441-7e1da3031ab0 h1:72XYCqNaL9hxP5WVw3YzNp2s+MexmcTEWDUSHARj1nE=
github.com/ledgerwatch/erigon-snapshot v1.0.1-0.20221010023441-7e1da3031ab0/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
github.com/ledgerwatch/log/v3 v3.4.2 h1:chvjB7c100rlIFgPv+Col2eerxIrHL88OiZRuPZDkxw=