Skip to content

Commit

Permalink
fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
sstanculeanu committed Feb 7, 2025
1 parent 788d72b commit 113c0ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions process/block/metablock.go
Original file line number Diff line number Diff line change
Expand Up @@ -2214,15 +2214,13 @@ func (mp *metaProcessor) computeExistingAndRequestMissingShardHeaders(metaBlock
hasProofForShardHeader := mp.proofsPool.HasProof(shardData.ShardID, shardData.HeaderHash)
if shouldConsiderProofsForNotarization && !hasProofForShardHeader {
// if there is no proof for current shard header, request the next one that holds this proof
mp.hdrsForCurrBlock.missingFinalityAttestingHdrs++
go mp.requestHandler.RequestShardHeaderByNonce(hdr.GetShardID(), hdr.GetNonce()+1)
}

mp.updateLastNotarizedBlockForShard(hdr, shardData.HeaderHash)
}

requestedFinalityAttestingBasedOnProofs := mp.hdrsForCurrBlock.missingFinalityAttestingHdrs > 0
if mp.hdrsForCurrBlock.missingHdrs == 0 && !requestedFinalityAttestingBasedOnProofs {
if mp.hdrsForCurrBlock.missingHdrs == 0 {
mp.hdrsForCurrBlock.missingFinalityAttestingHdrs = mp.requestMissingFinalityAttestingShardHeaders()
}

Expand Down

0 comments on commit 113c0ad

Please sign in to comment.