mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 12:40:05 +00:00
Add nil check for validator db migration (#8493)
* Add nil check for validator db migration * continue if source bucket is nil
This commit is contained in:
parent
0f515784d8
commit
ad9cd1933a
@ -51,9 +51,12 @@ func (s *Store) migrateSourceTargetEpochsBucketUp(ctx context.Context) error {
|
||||
bkt := tx.Bucket(pubKeysBucket)
|
||||
for _, pubKey := range batch {
|
||||
pkb := bkt.Bucket(pubKey)
|
||||
if pkb == nil {
|
||||
continue
|
||||
}
|
||||
sourceBucket := pkb.Bucket(attestationSourceEpochsBucket)
|
||||
if sourceBucket == nil {
|
||||
return nil
|
||||
continue
|
||||
}
|
||||
targetBucket, err := pkb.CreateBucketIfNotExists(attestationTargetEpochsBucket)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user