mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
Fix slasher historic attestation detection (#5532)
* fix slasher historic attestation detection * revert log changes
This commit is contained in:
parent
639e3072fe
commit
fae307e5a2
@ -137,10 +137,10 @@ func (ds *Service) detectHistoricalChainData(ctx context.Context) {
|
||||
}
|
||||
ds.submitAttesterSlashings(ctx, slashings)
|
||||
}
|
||||
}
|
||||
|
||||
if err := ds.slasherDB.SaveChainHead(ctx, currentChainHead); err != nil {
|
||||
log.WithError(err).Error("Could not persist chain head to disk")
|
||||
latestStoredHead = ðpb.ChainHead{HeadEpoch: epoch}
|
||||
if err := ds.slasherDB.SaveChainHead(ctx, latestStoredHead); err != nil {
|
||||
log.WithError(err).Error("Could not persist chain head to disk")
|
||||
}
|
||||
}
|
||||
log.Infof("Completed slashing detection on historical chain data up to epoch %d", currentChainHead.HeadEpoch)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user