Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions process/block/interceptedBlocks/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ func checkMetaShardInfo(
continue
}

log.Warn("proof in pool not equal to provided prev proof, will check prev proof",
"headerHash", sd.GetPreviousProof().GetHeaderHash(),
)

err = checkProof(sd.GetPreviousProof(), headerSigVerifier)
if err != nil {
return err
Expand Down
7 changes: 6 additions & 1 deletion process/block/shardblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,12 @@ func (sp *shardProcessor) CommitBlock(
sp.lastRestartNonce = header.GetNonce()
}

sp.updateState(selfNotarizedHeaders, header, currentHeaderHash)
finalHeaderHash := headerHash
if !common.ShouldBlockHavePrevProof(header, sp.enableEpochsHandler, common.EquivalentMessagesFlag) {
finalHeaderHash = currentHeaderHash
}

sp.updateState(selfNotarizedHeaders, header, finalHeaderHash)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should do the same for header

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad, should not be needed


highestFinalBlockNonce := sp.forkDetector.GetHighestFinalBlockNonce()
log.Debug("highest final shard block",
Expand Down