ignore syncing freelist for validator db (#8601)

This commit is contained in:
Nishant Das 2021-03-12 22:06:20 +08:00 committed by GitHub
parent eb694ab5d5
commit 3b6b3f6ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,6 +118,7 @@ func NewKVStore(ctx context.Context, dirPath string, config *Config) (*Store, er
boltDB, err := bolt.Open(datafile, params.BeaconIoConfig().ReadWritePermissions, &bolt.Options{
Timeout: params.BeaconIoConfig().BoltTimeout,
InitialMmapSize: config.InitialMMapSize,
NoFreelistSync: true,
})
if err != nil {
if errors.Is(err, bolt.ErrTimeout) {