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: use second as argument for generate genesis cid #1374

Closed
wants to merge 1 commit into from

Conversation

hunjixin
Copy link

No description provided.

@hunjixin
Copy link
Author

func (g *GenesisConfig) GoldenATX() types.Hash32 {
	hh := hash.New()
	parsed, err := time.Parse(time.RFC3339, g.GenesisTime)
	if err != nil {
		panic("code should have run Validate before this method")
	}
	hh.Write([]byte(strconv.FormatInt(parsed.Unix(), 10)))
	hh.Write([]byte(g.ExtraData))
	return types.BytesToHash(hh.Sum(nil))
}

@brusherru
Copy link
Member

@hunjixin, hello and welcome! Thanks for the contribution!
But I have to close it:

It will be solved soon and included in the next release.

@brusherru brusherru closed this Jul 17, 2023
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.

2 participants