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

highlight nodes shuffled out to auction list #6166

Merged
merged 10 commits into from
May 17, 2024

Conversation

AdoAdoAdo
Copy link
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?

sasurobert
sasurobert previously approved these changes May 15, 2024
raduchis
raduchis previously approved these changes May 15, 2024
@AdoAdoAdo AdoAdoAdo marked this pull request as ready for review May 15, 2024 12:30
sasurobert
sasurobert previously approved these changes May 15, 2024
raduchis
raduchis previously approved these changes May 15, 2024
@AdoAdoAdo AdoAdoAdo changed the base branch from rc/v1.7.0 to master May 16, 2024 08:03
@AdoAdoAdo AdoAdoAdo dismissed stale reviews from raduchis and sasurobert May 16, 2024 08:03

The base branch was changed.

config/tomlConfig_test.go Outdated Show resolved Hide resolved
@@ -212,6 +212,7 @@ func epochValidatorsToEpochNodesConfig(config EpochValidatorsHandler) (*epochNod
if err != nil {
return nil, err
}
result.lowWaitingList = configWithAuction.GetLowWaitingList()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rename these variables to reflect these are bool variables (e.g.: is/wasLowWaitingList?) otherwise, it looks like we are querying a list of nodes

sasurobert
sasurobert previously approved these changes May 17, 2024
@@ -61,7 +61,7 @@ func displayNodesConfigInfo(config map[uint32]*epochNodesConfig) {

func (ihnc *indexHashedNodesCoordinator) saveState(key []byte, epoch uint32) error {
registry := ihnc.NodesCoordinatorToRegistry(epoch)
data, err := ihnc.nodesCoordinatorRegistryFactory.GetRegistryData(registry, ihnc.currentEpoch)
data, err := ihnc.nodesCoordinatorRegistryFactory.GetRegistryData(registry, epoch)
Copy link
Contributor

Choose a reason for hiding this comment

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

were these 2 always equal?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, when executing EpochStartPrepare these are not equal. But then the state is saved again when these are equal, so it was still ok.

Copy link
Collaborator

@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.7.10-dev-config-c267fd1a5f -> auction-from-shuffled-out-1dd6e0755e

--- Specific errors ---

block hash does not match 273
wrong nonce in block 231
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: 0
Nr. of all WARNS: 255
Nr. of new ERRORS: 0
Nr. of new WARNS: 16
Nr. of PANICS: 0

/------/

--- ERRORS ---

/------/

--- WARNINGS ---

/------/

Copy link
Collaborator

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

Tested also with half-half and with a specific scenario ✅

@sstanculeanu sstanculeanu merged commit f7efd0f into master May 17, 2024
8 checks passed
@sstanculeanu sstanculeanu deleted the auction-from-shuffled-out branch May 17, 2024 14:41
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.

None yet

6 participants