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

Refined import db process #2338

Merged
merged 6 commits into from
Oct 7, 2020
Merged

Conversation

iulianpascalau
Copy link
Contributor

Improved the import-db process:

  • added a delay before the import process will stop the node in order to have the time to commit received data
  • added ThresholdMinConnectedPeers as a config in order to be overridden by the import db process
  • made the import-db process automatically generate a new BLS key in order to avoid accidental usage of a validator BLS key that migh trigger the node shuffle-out

… to have the time to commit received data

- added ThresholdMinConnectedPeers as a config in order to be overridden by the import db process
- made the import-db process automatically generate a new BLS key in order to avoid accidental usage of a validator BLS key that migh trigger the node shuffle-out
@iulianpascalau iulianpascalau self-assigned this Oct 2, 2020
@iulianpascalau iulianpascalau added the type:feature New feature or request label Oct 2, 2020
@sasurobert sasurobert self-requested a review October 2, 2020 15:35
sasurobert
sasurobert previously approved these changes Oct 2, 2020
cmd/node/main.go Outdated
importCheckpointRoundsModulus := uint(config.EpochStartConfig.RoundsPerEpoch)
log.Info("import DB directory is set, altering config values!",
log.Warn("the node is import mode! Will auto-set some config values",
Copy link
Contributor

Choose a reason for hiding this comment

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

is in

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

@@ -78,6 +91,21 @@ func (cspf *cryptoSigningParamsLoader) Get() (*CryptoParams, error) {
return cryptoParams, nil
}

func (cspf *cryptoSigningParamsLoader) generateCryptoParams(cryptoParams *CryptoParams) (*CryptoParams, error) {
log.Warn("the node is import mode! Will generate a fresh new BLS key")
Copy link
Contributor

Choose a reason for hiding this comment

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

is in

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

SebastianMarian
SebastianMarian previously approved these changes Oct 2, 2020
Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

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

System tests passed.

@LucianMincu LucianMincu merged commit a0e8ef7 into development Oct 7, 2020
@LucianMincu LucianMincu deleted the refined-import-db-process branch October 7, 2020 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants