From 0faf7ac01f8436dcce7da0f6d2c2543da93a78b7 Mon Sep 17 00:00:00 2001 From: terencechain Date: Fri, 29 Apr 2022 14:26:39 -0700 Subject: [PATCH] Debug log when new head is not in db (#10591) --- beacon-chain/blockchain/receive_attestation.go | 1 + 1 file changed, 1 insertion(+) diff --git a/beacon-chain/blockchain/receive_attestation.go b/beacon-chain/blockchain/receive_attestation.go index b31aef2d4..a10958d31 100644 --- a/beacon-chain/blockchain/receive_attestation.go +++ b/beacon-chain/blockchain/receive_attestation.go @@ -166,6 +166,7 @@ func (s *Service) notifyEngineIfChangedHead(ctx context.Context, newHeadRoot [32 }).Debug("Head changed due to attestations") if !s.hasBlockInInitSyncOrDB(ctx, newHeadRoot) { + log.Debug("New head does not exist in DB. Do nothing") return // We don't have the block, don't notify the engine and update head. }