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

hash economic config and save the result to stateDB #1333

Conversation

bglmmz
Copy link
Contributor

@bglmmz bglmmz commented Apr 16, 2020

  1. update gov.config variable type from float64 to uint64
  2. hash economic config and save the result to stateDB
  3. make sure endVotingBlock is higher than submitBlock

core/genesis_data.go Outdated Show resolved Hide resolved
x/gov/proposals.go Show resolved Hide resolved
Comment on lines +30 to +31
const RateCoefficient = uint64(10000)

Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to add a comment message

Comment on lines 317 to 319
func genesisGovernParamData(prevHash common.Hash, snapdb snapshotdb.BaseDB, genesisVersion uint32) (common.Hash, error) {
func genesisGovernParamData(economicModel *xcom.EconomicModel, prevHash common.Hash, snapdb snapshotdb.BaseDB, genesisVersion uint32) (common.Hash, error) {
return gov.InitGenesisGovernParam(prevHash, snapdb, genesisVersion)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this economicModel useless in this function? Useless parameters need to be deleted

@benbaley benbaley merged commit 79ea13a into PlatONnetwork:feature/optimization-of-vrf Apr 16, 2020
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

4 participants