From 7ae579ba5952c6018600a66c509cb3791b08fbe1 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Thu, 10 Mar 2022 09:20:47 +0700 Subject: [PATCH] open snapshots in embedded rpcdaemon (#3670) --- eth/backend.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/backend.go b/eth/backend.go index d6fa26814..e4dc5e6bb 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -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 {