mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
open snapshots in embedded rpcdaemon (#3670)
This commit is contained in:
parent
14b300214a
commit
7ae579ba59
@ -319,6 +319,7 @@ func New(stack *node.Node, config *ethconfig.Config, txpoolCfg txpool2.Config, l
|
|||||||
}
|
}
|
||||||
|
|
||||||
allSnapshots := snapshotsync.NewRoSnapshots(config.Snapshot, config.SnapshotDir.Path)
|
allSnapshots := snapshotsync.NewRoSnapshots(config.Snapshot, config.SnapshotDir.Path)
|
||||||
|
allSnapshots.AsyncOpenAll(ctx)
|
||||||
blockReader = snapshotsync.NewBlockReaderWithSnapshots(allSnapshots)
|
blockReader = snapshotsync.NewBlockReaderWithSnapshots(allSnapshots)
|
||||||
|
|
||||||
if len(stack.Config().DownloaderAddr) > 0 {
|
if len(stack.Config().DownloaderAddr) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user