Skip to content

updated pendingMiniBlocks for meta header v3#7364

Merged
sstanculeanu merged 7 commits into
feat/supernova-async-execfrom
pendingMiniBlocks-for-hv3
Nov 3, 2025
Merged

updated pendingMiniBlocks for meta header v3#7364
sstanculeanu merged 7 commits into
feat/supernova-async-execfrom
pendingMiniBlocks-for-hv3

Conversation

@sstanculeanu

Copy link
Copy Markdown
Collaborator

Reasoning behind the pull request

  • pendingMiniBlocks component should be able to handle meta header v3 as well

Proposed changes

  • updated the component to extract the mini blocks from execution results instead of header mini blocks

Testing procedure

  • with rc

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?

@raduchis raduchis self-requested a review October 28, 2025 12:53
@AdoAdoAdo AdoAdoAdo self-requested a review October 31, 2025 13:46
return crossShardMiniBlocks, nil
}

func getMiniBlocksFromHeader(header data.MetaHeaderHandler) ([]data.MiniBlockHeaderHandler, error) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe rename this to getMiniBlocksFromHeaderReadyForCrossShardExecution() ?

}

func (p *pendingMiniBlocks) getAllCrossShardMiniBlocksHashes(metaBlock data.MetaHeaderHandler) map[string]uint32 {
func (p *pendingMiniBlocks) getAllCrossShardMiniBlocksHashes(metaBlock data.MetaHeaderHandler) (map[string]uint32, error) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe rename to getMiniBlocksHashesReadyForCrossShardExecution

…ersx/mx-chain-go into pendingMiniBlocks-for-hv3

# Conflicts:
#	common/common.go
raduchis
raduchis previously approved these changes Oct 31, 2025
Comment thread common/common.go Outdated
}

if headerShard == MetachainShardId {
metaExecResult, ok := baseExecResult.(data.MetaExecutionResultHandler)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if there was an interface with only the GetMiniBlockHeadersHandlers() method, the headerShard could be discarded and the current method would be simplified. Could also remain like this.

type ExecutionResultHandler interface {
      GetMiniBlockHeadersHandlers()
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

moved on the PR implementing this method: #7337 (comment)

@sstanculeanu sstanculeanu mentioned this pull request Oct 31, 2025
raduchis
raduchis previously approved these changes Oct 31, 2025
@codecov

codecov Bot commented Oct 31, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.31%. Comparing base (e053c0d) to head (d741ef1).
⚠️ Report is 9 commits behind head on feat/supernova-async-exec.

Additional details and impacted files
@@                      Coverage Diff                      @@
##           feat/supernova-async-exec    #7364      +/-   ##
=============================================================
- Coverage                      77.31%   77.31%   -0.01%     
=============================================================
  Files                            867      867              
  Lines                         116874   116890      +16     
=============================================================
+ Hits                           90364    90369       +5     
- Misses                         20555    20564       +9     
- Partials                        5955     5957       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

AdoAdoAdo
AdoAdoAdo previously approved these changes Oct 31, 2025
@sstanculeanu sstanculeanu dismissed stale reviews from AdoAdoAdo and raduchis via 532b268 November 3, 2025 08:02
@sstanculeanu sstanculeanu merged commit fcdf718 into feat/supernova-async-exec Nov 3, 2025
9 checks passed
@sstanculeanu sstanculeanu deleted the pendingMiniBlocks-for-hv3 branch November 3, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants