pool: make sender info unloadable (#2584)

* ss

* ss

* ss

* ss

* ss

* ss

* ss

* ss

* ss

* ss

* ss

* ss

* ss
This commit is contained in:
Alex Sharov 2021-08-27 11:51:33 +07:00 committed by GitHub
parent 7506beb256
commit 1f480fa472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -67,6 +67,7 @@ var rootCmd = &cobra.Command{
return fmt.Errorf("could not connect to remoteKv: %w", err)
}
log.Info("TxPool started", "db", path.Join(datadir, "txpool"))
txPoolDB, err := mdbx.NewMDBX(log.New()).Path(path.Join(datadir, "txpool")).WithTablessCfg(func(defaultBuckets kv.TableCfg) kv.TableCfg { return kv.TxpoolTablesCfg }).Open()
if err != nil {
return err

2
go.mod
View File

@ -37,7 +37,7 @@ require (
github.com/julienschmidt/httprouter v1.3.0
github.com/kevinburke/go-bindata v3.21.0+incompatible
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/ledgerwatch/erigon-lib v0.0.0-20210826022733-7506e3c8dbd7
github.com/ledgerwatch/erigon-lib v0.0.0-20210826110803-1d9c9aa1bfbd
github.com/ledgerwatch/log/v3 v3.3.0
github.com/ledgerwatch/secp256k1 v0.0.0-20210626115225-cd5cd00ed72d
github.com/logrusorgru/aurora/v3 v3.0.0

4
go.sum
View File

@ -490,8 +490,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
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-20210826022733-7506e3c8dbd7 h1:i2KNQASh8expgxOnHiNTjuWLvIskfnlj29+qFPPlcig=
github.com/ledgerwatch/erigon-lib v0.0.0-20210826022733-7506e3c8dbd7/go.mod h1:MeJOD9uuq8iDAbH83qsJ5V52yuUSTJ13I6ORvm/ft6U=
github.com/ledgerwatch/erigon-lib v0.0.0-20210826110803-1d9c9aa1bfbd h1:vvqp3d097Lz0ZxPApXZoqzesYDAz8BwrIuOXOJB2tWo=
github.com/ledgerwatch/erigon-lib v0.0.0-20210826110803-1d9c9aa1bfbd/go.mod h1:MeJOD9uuq8iDAbH83qsJ5V52yuUSTJ13I6ORvm/ft6U=
github.com/ledgerwatch/log/v3 v3.2.0/go.mod h1:J58eOHHrIYHxl7LKkRsb/0YibKwtLfauUryl5SLRGm0=
github.com/ledgerwatch/log/v3 v3.3.0 h1:k8N/3NQLILr8CKCMyza261vLFKU7VA+nMNNb0wVyQSc=
github.com/ledgerwatch/log/v3 v3.3.0/go.mod h1:J58eOHHrIYHxl7LKkRsb/0YibKwtLfauUryl5SLRGm0=