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

genesisTimestamp is hardcoded to a wrong date #1366

Closed
dfstio opened this issue Jan 11, 2024 · 2 comments · Fixed by #1367
Closed

genesisTimestamp is hardcoded to a wrong date #1366

dfstio opened this issue Jan 11, 2024 · 2 comments · Fixed by #1367
Assignees

Comments

@dfstio
Copy link

dfstio commented Jan 11, 2024

  // copied from mina/genesis_ledgers/berkeley.json
  // TODO fetch from graphql instead of hardcoding
  const genesisTimestampString = '2023-02-23T20:00:01Z';
  const genesisTimestamp = UInt64.from(
    Date.parse(genesisTimestampString.slice(0, -1) + '+00:00')
  );

https://github.com/o1-labs/o1js/blob/main/src/lib/mina.ts#L742

@dfstio
Copy link
Author

dfstio commented Jan 11, 2024

https://github.com/MinaProtocol/mina/blob/develop/genesis_ledgers/berkeley.json:

"genesis": {
    "genesis_state_timestamp": "2023-10-17T16:01:01Z"
  },

@mitschabaude
Copy link
Collaborator

Thanks 🙏🏻

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 a pull request may close this issue.

3 participants