add system log for creating/loading snapshot

pull/4618/head
“GheisMohammadi” 10 months ago
parent 9b42870e09
commit 0082c4d7a0
No known key found for this signature in database
GPG Key ID: 15073AED3829FE90
  1. 3
      core/blockchain_impl.go

@ -355,6 +355,9 @@ func newBlockChainWithOptions(
AsyncBuild: !bc.cacheConfig.SnapshotWait,
}
fmt.Println("loading/generating snapshot...")
utils.Logger().Info().
Str("Root", head.Root().Hex()).
Msg("loading/generating snapshot")
bc.snaps, _ = snapshot.New(snapconfig, bc.db, bc.triedb, head.Root())
}

Loading…
Cancel
Save