Skip to content

Commit

Permalink
avoid unwanted logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sstanculeanu committed Feb 11, 2025
1 parent 1139d85 commit 32d381c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions process/block/baseProcess.go
Original file line number Diff line number Diff line change
Expand Up @@ -2404,6 +2404,11 @@ func (bp *baseProcessor) checkReceivedHeaderAndUpdateMissingAttesting(headerHand
bp.mutRequestedAttestingNoncesMap.Lock()
defer bp.mutRequestedAttestingNoncesMap.Unlock()

isWaitingForProofs := len(bp.requestedAttestingNoncesMap) > 0
if !isWaitingForProofs {
return
}

receivedShard := headerHandler.GetShardID()
prevHash := headerHandler.GetPrevHash()
_, isHeaderWithoutProof := bp.requestedAttestingNoncesMap[string(prevHash)]
Expand Down

0 comments on commit 32d381c

Please sign in to comment.