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): separate genesis param and chain param #1458

Closed
wants to merge 7 commits into from

Conversation

kehiy
Copy link
Contributor

@kehiy kehiy commented Aug 5, 2024

Description

Related issue

@kehiy kehiy requested a review from b00f August 5, 2024 15:04
@kehiy kehiy marked this pull request as draft August 5, 2024 15:04
types/param/genesis_param.go Outdated Show resolved Hide resolved
types/param/genesis_param.go Outdated Show resolved Hide resolved
@kehiy kehiy marked this pull request as ready for review August 7, 2024 15:26
@kehiy kehiy requested a review from b00f August 7, 2024 15:28
genesis/genesis_param.go Outdated Show resolved Hide resolved
genesis/genesis_param.go Outdated Show resolved Hide resolved
genesis/genesis_param.go Outdated Show resolved Hide resolved
types/param/param.go Outdated Show resolved Hide resolved
@kehiy
Copy link
Contributor Author

kehiy commented Aug 10, 2024

@b00f requested changes are done. but I can't make fee parameters private in genesis params since we will get linter errors.

@kehiy kehiy requested a review from b00f August 10, 2024 11:57
@@ -41,7 +42,7 @@ type Node struct {
nanomsg *nanomsg.Server
}

func NewNode(genDoc *genesis.Genesis, conf *config.Config,
func NewNode(genDoc *genesis.Genesis, chainParam *param.Params, conf *config.Config,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you pass params when you can get it from genesis?

@kehiy kehiy closed this Aug 11, 2024
@kehiy kehiy deleted the params branch August 11, 2024 17:12
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.

Set fee paramaetrs to zero in genesis doc
2 participants