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

Read minimum staking value from database #1023

Merged

Conversation

jeongkyun-oh
Copy link
Contributor

@jeongkyun-oh jeongkyun-oh commented Aug 10, 2021

Proposed changes

  • The snapshot can be made on the past blocks as well. The minimum staking parameter can be different on the past block, but the minimum staking parameter is stored and used globally. This PR fixes this change.
  • This PR should be merged after Fixed governance votes application #1018.

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or enhancement
  • Others

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING GUIDELINES doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes ($ make test)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

ehnuje
ehnuje previously approved these changes Aug 20, 2021
hqjang-pepper
hqjang-pepper previously approved these changes Sep 2, 2021
consensus/istanbul/backend/engine_test.go Outdated Show resolved Hide resolved
consensus/istanbul/backend/engine_test.go Outdated Show resolved Hide resolved
@jeongkyun-oh jeongkyun-oh force-pushed the KLT-1026-fix-global-minimum-stake branch from e73a7c9 to b0b356f Compare September 10, 2021 04:19
Comment on lines +83 to +84
config := *params.TestChainConfig // copy test chain config which may be modified
genesis.Config = &config
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems good to import chainconfig like this way in case the chainconfig changes later. LGTM

hqjang-pepper
hqjang-pepper previously approved these changes Sep 10, 2021
yoomee1313
yoomee1313 previously approved these changes Sep 10, 2021
Copy link
Contributor

@yoomee1313 yoomee1313 left a comment

Choose a reason for hiding this comment

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

@jeongkyun-oh ltgm except typo

consensus/istanbul/backend/engine_test.go Show resolved Hide resolved
consensus/istanbul/backend/engine_test.go Outdated Show resolved Hide resolved
consensus/istanbul/backend/engine_test.go Outdated Show resolved Hide resolved
consensus/istanbul/backend/engine_test.go Outdated Show resolved Hide resolved
@jeongkyun-oh jeongkyun-oh force-pushed the KLT-1026-fix-global-minimum-stake branch from 3db9b4a to 5fa7ba5 Compare September 10, 2021 06:15
@jeongkyun-oh jeongkyun-oh merged commit ecc911b into klaytn:dev Sep 13, 2021
@jeongkyun-oh jeongkyun-oh deleted the KLT-1026-fix-global-minimum-stake branch September 13, 2021 09:48
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