mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
erigon3 snapshots version 3 (#6811)
This commit is contained in:
parent
c31824ee17
commit
98a8ca50fe
@ -369,7 +369,7 @@ Examples of stages are:
|
||||
|
||||
### JSON-RPC daemon
|
||||
|
||||
Most of Erigon's components (sentry, txpool, snapshots downloader, can work inside Erigon and as independent process.
|
||||
Most of Erigon's components (txpool, rpcdaemon, snapshots downloader, sentry, ...) can work inside Erigon and as independent process.
|
||||
|
||||
To enable built-in RPC server: `--http` and `--ws` (sharing same port with http)
|
||||
|
||||
|
@ -743,11 +743,11 @@ func PruneExecutionStage(s *PruneState, tx kv.RwTx, cfg ExecuteBlockCfg, ctx con
|
||||
if cfg.historyV3 {
|
||||
cfg.agg.SetTx(tx)
|
||||
if initialCycle {
|
||||
if err = cfg.agg.Prune(ctx, ethconfig.HistoryV3AggregationStep*2); err != nil { // prune part of retired data, before commit
|
||||
if err = cfg.agg.Prune(ctx, ethconfig.HistoryV3AggregationStep/10); err != nil { // prune part of retired data, before commit
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
if err = cfg.agg.PruneWithTiemout(ctx, 500*time.Millisecond); err != nil { // prune part of retired data, before commit
|
||||
if err = cfg.agg.PruneWithTiemout(ctx, 1*time.Second); err != nil { // prune part of retired data, before commit
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
2
go.mod
2
go.mod
@ -4,7 +4,7 @@ go 1.18
|
||||
|
||||
require (
|
||||
github.com/ledgerwatch/erigon-lib v0.0.0-20230209052732-dce672859cf3
|
||||
github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230120022649-cd9409a200da
|
||||
github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230209051056-e695bb0d2ace
|
||||
github.com/ledgerwatch/log/v3 v3.7.0
|
||||
github.com/ledgerwatch/secp256k1 v1.0.0
|
||||
github.com/ledgerwatch/trackerslist v1.0.0 // indirect
|
||||
|
4
go.sum
4
go.sum
@ -558,8 +558,8 @@ github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7
|
||||
github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8=
|
||||
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/erigon-snapshot v1.1.1-0.20230209051056-e695bb0d2ace h1:42TpaEa42wznKkWVIMuhFPurxTvx8JzITQl+Ofzotq8=
|
||||
github.com/ledgerwatch/erigon-snapshot v1.1.1-0.20230209051056-e695bb0d2ace/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
|
||||
github.com/ledgerwatch/log/v3 v3.7.0 h1:aFPEZdwZx4jzA3+/Pf8wNDN5tCI0cIolq/kfvgcM+og=
|
||||
github.com/ledgerwatch/log/v3 v3.7.0/go.mod h1:J2Jl6zV/58LeA6LTaVVnCGyf1/cYYSEOOLHY4ZN8S2A=
|
||||
github.com/ledgerwatch/secp256k1 v1.0.0 h1:Usvz87YoTG0uePIV8woOof5cQnLXGYa162rFf3YnwaQ=
|
||||
|
Loading…
Reference in New Issue
Block a user