open snapshots in embedded rpcdaemon (#3670)

This commit is contained in:
Alex Sharov 2022-03-10 09:20:47 +07:00 committed by GitHub
parent 14b300214a
commit 7ae579ba59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.AsyncOpenAll(ctx)
blockReader = snapshotsync.NewBlockReaderWithSnapshots(allSnapshots)
if len(stack.Config().DownloaderAddr) > 0 {