Skip to content

Conversation

@AdoAdoAdo
Copy link
Contributor

@AdoAdoAdo AdoAdoAdo commented Jan 23, 2025

Reasoning behind the pull request

  • the request of missing attesting blocks needs to change when there are proofs for blocks

Proposed changes

  • depending on the last notarized shard block, decide if there is a need to request attesting blocks

Testing procedure

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

bp.hdrsForCurrBlock.mutHdrsForBlock.Unlock()
}

type LastNotarizedHeaderInfo struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

HasProof bool
}

func (bp *baseProcessor) SetLastNotarizedHeaderForShard(shardId uint32, info *LastNotarizedHeaderInfo) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done


func (bp *baseProcessor) SetLastNotarizedHeaderForShard(shardId uint32, info *LastNotarizedHeaderInfo) {
bp.hdrsForCurrBlock.mutHdrsForBlock.Lock()
lastNotarizedSharInfo := &lastNotarizedHeaderInfo{
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
lastNotarizedSharInfo := &lastNotarizedHeaderInfo{
lastNotarizedShardInfo := &lastNotarizedHeaderInfo{

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@AdoAdoAdo AdoAdoAdo merged commit 4757ba0 into equivalent-proofs-stabilization-2 Jan 23, 2025
2 of 3 checks passed
@AdoAdoAdo AdoAdoAdo deleted the fix-requesting-attesting-blocks branch January 23, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants