Skip to content

Feat/sub second round 2#7374

Merged
AdoAdoAdo merged 32 commits into
rc/supernovafrom
feat/sub-second-round-2
Nov 10, 2025
Merged

Feat/sub second round 2#7374
AdoAdoAdo merged 32 commits into
rc/supernovafrom
feat/sub-second-round-2

Conversation

@ssd04

@ssd04 ssd04 commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

Reasoning behind the pull request

Proposed changes

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?

@ssd04 ssd04 self-assigned this Oct 28, 2025
@ssd04 ssd04 marked this pull request as ready for review October 28, 2025 09:05
@AdoAdoAdo AdoAdoAdo requested a review from Copilot October 28, 2025 09:53

Copilot AI left a comment

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.

Pull Request Overview

This PR implements sub-second round timing support (Supernova feature) by introducing a round-based enable handler and a configurable unbond period that varies based on whether the Supernova round flag is active.

Key Changes

  • Added EnableRoundsHandler to enable/disable features based on round numbers instead of epochs
  • Introduced UnBondPeriodSupernova configuration to allow different unbond periods after the Supernova activation
  • Removed RoundDurationMilliseconds parameter from RatingsData, now sourced from chain parameters

Reviewed Changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
vm/systemSmartContracts/staking.go Added enableRoundsHandler and unBondPeriodSupernova fields with logic to dynamically select unbond period based on round
vm/systemSmartContracts/staking_test.go Added tests for nil handlers and Supernova unbond period behavior
vm/factory/systemSCFactory.go Integrated EnableRoundsHandler into system smart contract factory
vm/errors.go Added ErrNilEnableRoundsHandler error
process/rating/ratingsData.go Removed roundDurationInMilliseconds field, now using RoundDuration from chain parameters
config/systemSmartContractsConfig.go Added UnBondPeriodSupernova configuration field
cmd/node/config/systemSmartContractsConfig.toml Added UnBondPeriodSupernova = 2500 configuration value
Multiple test files Added EnableRoundsHandler stub to test setup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vm/systemSmartContracts/staking_test.go
Comment thread vm/systemSmartContracts/staking_test.go
Comment thread vm/systemSmartContracts/staking_test.go
Comment thread vm/systemSmartContracts/staking_test.go
Comment thread vm/systemSmartContracts/staking_test.go
Comment thread vm/factory/systemSCFactory.go
@ssd04

ssd04 commented Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

Run Tests:
mx-chain-simulator-go: rc/supernova
mx-chain-testing-suite: rc/supernova

@github-actions

github-actions Bot commented Nov 5, 2025

Copy link
Copy Markdown

Integration Tests completed with failures or errors.

📊 MultiversX Automated Test Report: View Report

🔄 Build Details:

  • mx-chain-go Commit Hash: 327750c613dfa0be71b1e7218fa3ca1633873501
  • Current Branch: master
  • mx-chain-go Target Branch: ``
  • mx-chain-simulator-go Target Branch: rc/supernova
  • mx-chain-testing-suite Target Branch: rc/supernova
  • mx-chain-simulator-go Commit Hash: 16860d51e88167e90f21d2342349a05ebe07b450

🚀 Environment Variables:

  • TIMESTAMP: 2025_NOVEMBER_05__12_34_17
  • PYTEST_EXIT_CODE: ``

@github-actions

github-actions Bot commented Nov 5, 2025

Copy link
Copy Markdown

Integration Tests completed with failures or errors.

📊 MultiversX Automated Test Report: View Report

🔄 Build Details:

  • mx-chain-go Commit Hash: 42d6868f681145c8a55865e7d162c9c76f1e96b4
  • Current Branch: feat/sub-second-round-2
  • 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: 16860d51e88167e90f21d2342349a05ebe07b450

🚀 Environment Variables:

  • TIMESTAMP: 2025_NOVEMBER_05__12_59_48
  • PYTEST_EXIT_CODE: 1

sstanculeanu
sstanculeanu previously approved these changes Nov 7, 2025
AdoAdoAdo
AdoAdoAdo previously approved these changes Nov 7, 2025
@github-actions

github-actions Bot commented Nov 7, 2025

Copy link
Copy Markdown

Integration Tests completed with failures or errors.

📊 MultiversX Automated Test Report: View Report

🔄 Build Details:

  • mx-chain-go Commit Hash: a87bbd80f6186de861488b5ce3dc1e6da69292ed
  • Current Branch: feat/sub-second-round-2
  • 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: 16860d51e88167e90f21d2342349a05ebe07b450

🚀 Environment Variables:

  • TIMESTAMP: 2025_NOVEMBER_07__12_03_32
  • PYTEST_EXIT_CODE: ``

@codecov

codecov Bot commented Nov 7, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 51.38889% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.80%. Comparing base (99ac8c4) to head (ae4722a).
⚠️ Report is 303 commits behind head on rc/supernova.

Files with missing lines Patch % Lines
node/chainSimulator/chainSimulator.go 0.00% 16 Missing ⚠️
node/chainSimulator/configs/configs.go 0.00% 16 Missing ⚠️
process/factory/metachain/vmContainerFactory.go 50.00% 1 Missing and 1 partial ⚠️
factory/api/apiResolverFactory.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           rc/supernova    #7374      +/-   ##
================================================
+ Coverage         75.30%   76.80%   +1.49%     
================================================
  Files               842      846       +4     
  Lines            138067   113121   -24946     
================================================
- Hits             103969    86880   -17089     
+ Misses            28270    20396    -7874     
- Partials           5828     5845      +17     

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

miiu96
miiu96 previously approved these changes Nov 7, 2025
@AdoAdoAdo AdoAdoAdo dismissed stale reviews from miiu96, sstanculeanu, and themself via 63cf85d November 7, 2025 15:41
AdoAdoAdo
AdoAdoAdo previously approved these changes Nov 7, 2025
sstanculeanu
sstanculeanu previously approved these changes Nov 7, 2025
schimih
schimih previously approved these changes Nov 7, 2025
@github-actions

github-actions Bot commented Nov 7, 2025

Copy link
Copy Markdown

Integration Tests completed with failures or errors.

📊 MultiversX Automated Test Report: View Report

🔄 Build Details:

  • mx-chain-go Commit Hash: 63cf85d0573c9e5d046e4617749fb14e701703e0
  • Current Branch: feat/sub-second-round-2
  • 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: 16860d51e88167e90f21d2342349a05ebe07b450

🚀 Environment Variables:

  • TIMESTAMP: 2025_NOVEMBER_07__16_23_19
  • PYTEST_EXIT_CODE: 1

@sstanculeanu sstanculeanu dismissed stale reviews from schimih, AdoAdoAdo, and themself via ae4722a November 8, 2025 08:30
@github-actions

github-actions Bot commented Nov 8, 2025

Copy link
Copy Markdown

Integration Tests completed with failures or errors.

📊 MultiversX Automated Test Report: View Report

🔄 Build Details:

  • mx-chain-go Commit Hash: ae4722ace75af5614fadfa0697a3d480d3cc1e38
  • Current Branch: feat/sub-second-round-2
  • 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: 16860d51e88167e90f21d2342349a05ebe07b450

🚀 Environment Variables:

  • TIMESTAMP: 2025_NOVEMBER_08__08_31_26
  • PYTEST_EXIT_CODE: 1

@AdoAdoAdo AdoAdoAdo merged commit 0b08441 into rc/supernova Nov 10, 2025
11 of 14 checks passed
@AdoAdoAdo AdoAdoAdo deleted the feat/sub-second-round-2 branch November 10, 2025 07:52
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.

6 participants