Skip to content

Adapt gas tracker to follow the new block limits - #7286

Merged
sstanculeanu merged 23 commits into
feat/supernova-async-execfrom
adapt-old-gas-tracker
Oct 29, 2025
Merged

Adapt gas tracker to follow the new block limits#7286
sstanculeanu merged 23 commits into
feat/supernova-async-execfrom
adapt-old-gas-tracker

Conversation

@sstanculeanu

Copy link
Copy Markdown
Collaborator

Reasoning behind the pull request

  • the old gas tracker implementation is still able to reject transactions/blocks if the limits are exceeded

Proposed changes

  • adapt it to follow the new limits after supernova round activation
  • it requires some functionality from Feat/supernova async exec #7055 that will be merged later

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?

@sstanculeanu sstanculeanu self-assigned this Sep 26, 2025
Base automatically changed from unique-chunks-processor to rc/supernova October 13, 2025 08:32
@sstanculeanu
sstanculeanu marked this pull request as ready for review October 14, 2025 09:08
@codecov

codecov Bot commented Oct 14, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.68%. Comparing base (b7d2356) to head (41ca089).

Additional details and impacted files
@@                      Coverage Diff                      @@
##           feat/supernova-async-exec    #7286      +/-   ##
=============================================================
- Coverage                      75.68%   75.68%   -0.01%     
=============================================================
  Files                            860      860              
  Lines                         141702   141727      +25     
=============================================================
+ Hits                          107248   107264      +16     
- Misses                         28514    28520       +6     
- Partials                        5940     5943       +3     

☔ 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.

shardCoordinator: shardCoordinator,
gasHandler: gasHandler,
economicsFee: nil,
enableEpochsHandler: nil,

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.

this was changed in the feat/supernova-async-exec so probably will generate some conflicts
target the PR to the feat instead?

Comment thread process/economics/gasConfigHandler.go Outdated
}

return minGasPrice, gasPerDataByte, genesisTotalSupply, maxGasPriceSetGuardian, nil
// TODO[Sorin]: uncomment this once feat/supernova-async-exec merges with feat/sub-second-round

@AdoAdoAdo AdoAdoAdo Oct 14, 2025

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 you retarget to feat/supernova-async-exec, the sub-second feat should already be merged.

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.

updated after retarget

@github-actions

Copy link
Copy Markdown

Integration Tests completed with failures or errors.

📊 MultiversX Automated Test Report: View Report

🔄 Build Details:

  • mx-chain-go Commit Hash: 3caa6ec0d3ca4ca9170221200f0386b99786cfbc
  • Current Branch: adapt-old-gas-tracker
  • mx-chain-go Target Branch: rc/supernova
  • mx-chain-simulator-go Target Branch: rc/supernova
  • mx-chain-testing-suite Target Branch: rc/supernova
  • mx-chain-simulator-go Commit Hash: 7eb0e778a2d1a9d7dd6e49e005ad1fc7e0aea307

🚀 Environment Variables:

  • TIMESTAMP: 2025_OCTOBER_14__15_05_13
  • PYTEST_EXIT_CODE: 1

@sstanculeanu
sstanculeanu changed the base branch from rc/supernova to feat/supernova-async-exec October 15, 2025 06:41
sstanculeanu and others added 11 commits October 15, 2025 12:10
…ersx/mx-chain-go into adapt-old-gas-tracker

# Conflicts:
#	factory/processing/blockProcessorCreator.go
#	genesis/process/metaGenesisBlockCreator.go
#	genesis/process/shardGenesisBlockCreator.go
#	integrationTests/testProcessorNode.go
#	node/chainSimulator/components/coreComponents.go
#	process/block/preprocess/gasTracker_test.go
#	process/block/preprocess/rewardTxPreProcessor.go
#	process/block/preprocess/smartContractResults.go
#	process/block/preprocess/smartContractResults_test.go
#	process/block/preprocess/transactions.go
#	process/block/preprocess/transactionsV2_test.go
#	process/block/preprocess/transactions_test.go
#	process/block/shardblock_test.go
#	process/coordinator/process_test.go
#	process/errors.go
#	process/factory/metachain/preProcessorsContainerFactory.go
#	process/factory/metachain/preProcessorsContainerFactory_test.go
#	process/factory/shard/preProcessorsContainerFactory.go
#	process/factory/shard/preProcessorsContainerFactory_test.go
@raduchis
raduchis self-requested a review October 28, 2025 08:02
Comment thread process/economics/gasConfigHandler.go Outdated
Comment thread process/block/preprocess/gasTracker.go Outdated
Comment thread process/block/preprocess/gasTracker.go Outdated
Comment thread process/block/preprocess/gasTracker.go
raduchis
raduchis previously approved these changes Oct 28, 2025
AdoAdoAdo
AdoAdoAdo previously approved these changes Oct 28, 2025
@sstanculeanu
sstanculeanu dismissed stale reviews from AdoAdoAdo and raduchis via 9715c7d October 28, 2025 13:32
@sstanculeanu
sstanculeanu merged commit bf23324 into feat/supernova-async-exec Oct 29, 2025
8 of 9 checks passed
@sstanculeanu
sstanculeanu deleted the adapt-old-gas-tracker branch October 29, 2025 14:01
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