Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix genesis flags #5988

Merged
merged 11 commits into from
Mar 5, 2024
Merged

Fix genesis flags #5988

merged 11 commits into from
Mar 5, 2024

Conversation

iulianpascalau
Copy link
Contributor

@iulianpascalau iulianpascalau commented Feb 21, 2024

Reasoning behind the pull request

  • the nodes can not start & work properly if all enable epoch flags are set to 0

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?

@iulianpascalau iulianpascalau changed the title Fix genesis flags [WIP]Fix genesis flags Feb 21, 2024
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: Patch coverage is 84.14634% with 13 lines in your changes are missing coverage. Please review.

Project coverage is 80.28%. Comparing base (4a0b699) to head (6207335).

Files Patch % Lines
genesis/process/genesisBlockCreator.go 63.15% 4 Missing and 3 partials ⚠️
genesis/process/shardGenesisBlockCreator.go 87.75% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           rc/v1.7.0    #5988      +/-   ##
=============================================
- Coverage      80.30%   80.28%   -0.03%     
=============================================
  Files            733      733              
  Lines          96250    96197      -53     
=============================================
- Hits           77297    77235      -62     
- Misses         13612    13617       +5     
- Partials        5341     5345       +4     

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

@iulianpascalau iulianpascalau changed the title [WIP]Fix genesis flags Fix genesis flags Feb 22, 2024
# Conflicts:
#	factory/processing/processComponents.go
@iulianpascalau iulianpascalau marked this pull request as ready for review February 23, 2024 13:02
@raduchis raduchis self-requested a review February 23, 2024 13:49
raduchis
raduchis previously approved these changes Feb 23, 2024
@@ -240,6 +240,7 @@ func NewProcessComponentsFactory(args ProcessComponentsFactoryArgs) (*processCom
txExecutionOrderHandler: args.TxExecutionOrderHandler,
genesisNonce: args.GenesisNonce,
genesisRound: args.GenesisRound,
roundConfig: args.RoundConfig,
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -42,6 +42,7 @@ type ArgsProcessComponentsHolder struct {
NodesCoordinator nodesCoordinator.NodesCoordinator

EpochConfig config.EpochConfig
RoundConfig config.RoundConfig
Copy link
Contributor

@miiu96 miiu96 Feb 27, 2024

Choose a reason for hiding this comment

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

can you remove from file
../configs/configs.go line 122 (configs.EpochConfig.EnableEpochs.StakingV2EnableEpoch = args.InitialEpoch + 1)

if the problem is fixed tests should pass without this line

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, all tests pass without that line

Copy link
Contributor

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

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

Normal allin test: v1.6.15-dev-config-eb2e06c06d -> fix-genesis-flags-333c4f2461

--- Specific errors ---

block hash does not match 2605
wrong nonce in block 1010
miniblocks does not match 0
num miniblocks does not match 0
miniblock hash does not match 0
block bodies does not match 0
receipts hash missmatch 0

/------/

--- Statistics ---

Nr. of all ERRORS: 9
Nr. of all WARNS: 9367
Nr. of new ERRORS: 9
Nr. of new WARNS: 81
Nr. of PANICS: 0

/------/

--- ERRORS ---

/------/

@iulianpascalau iulianpascalau merged commit 64154cd into rc/v1.7.0 Mar 5, 2024
8 checks passed
@iulianpascalau iulianpascalau deleted the fix-genesis-flags branch March 5, 2024 12:00
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.

5 participants