Feat/sub second round 2#7374
Conversation
…-sub-second-round-2 Merge rc supernova into feat sub second round 2
There was a problem hiding this comment.
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
EnableRoundsHandlerto enable/disable features based on round numbers instead of epochs - Introduced
UnBondPeriodSupernovaconfiguration to allow different unbond periods after the Supernova activation - Removed
RoundDurationMillisecondsparameter fromRatingsData, 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.
|
Run Tests: |
|
❌ Integration Tests completed with failures or errors. 📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
|
❌ Integration Tests completed with failures or errors. 📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
New chain simulator parameters
|
❌ Integration Tests completed with failures or errors. 📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
Codecov Report❌ Patch coverage is 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. 🚀 New features to boost your workflow:
|
…duration Fix round duration milliseconds in chain simulator
63cf85d
|
❌ Integration Tests completed with failures or errors. 📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
ae4722a
|
❌ Integration Tests completed with failures or errors. 📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
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:
featbranch created?featbranch merging, do all satellite projects have a proper tag insidego.mod?