Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nisdas committed Oct 18, 2024
1 parent d9ca768 commit f1dfac8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beacon-chain/blockchain/process_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ func (s *Service) handleInvalidExecutionError(ctx context.Context, err error, bl
return err
}

// In the event of an issue with
// In the event of an issue processing a block we rollback changes done to the db and our caches
// to always ensure that the node's internal state is consistent.
func (s *Service) rollbackBlock(ctx context.Context, blockRoot [32]byte) {
log.Warnf("Rolling back insertion of block with root %#x due to processing error", blockRoot)
if err := s.cfg.BeaconDB.DeleteBlock(ctx, blockRoot); err != nil {
Expand Down

0 comments on commit f1dfac8

Please sign in to comment.