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

seth: update optimism genesis blockhashes #862

Merged
merged 2 commits into from
Nov 13, 2021

Conversation

tynes
Copy link
Contributor

@tynes tynes commented Nov 12, 2021

Description

Optimism performed a regenesis which updated the genesis
blockhashes for both mainnet and kovan. For seth chain and
any other seth commands that rely on seth chain to work,
the hardcoded genesis blockhashes need to be updated.

The values were fetched using the following commands:

$ seth --rpc-url https://mainnet.optimism.io block 0 hash
0x7ca38a1916c42007829c55e69d3e9a73265554b586a499015373241b8a3fa48b

$ seth --rpc-url https://kovan.optimism.io block 0 hash
0x02adc9b449ff5f2467b8c674ece7ff9b21319d76c4ad62a67a70d552655927e5

Tested locally with the commands:

$ ./src/seth/bin/seth --rpc-url https://mainnet.optimism.io chain
optimism-mainnet

$ ./src/seth/bin/seth --rpc-url https://kovan.optimism.io chain
optimism-kovan

They previously would return unknown

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

Optimism performed a regenesis which updated the genesis
blockhashes for both mainnet and kovan. For `seth chain` and
any other `seth` commands that rely on `seth chain` to work,
the hardcoded genesis blockhashes need to be updated.

The values were fetched using the following commands:

```
$ seth --rpc-url https://mainnet.optimism.io block 0 hash
0x7ca38a1916c42007829c55e69d3e9a73265554b586a499015373241b8a3fa48b

$ seth --rpc-url https://kovan.optimism.io block 0 hash
0x02adc9b449ff5f2467b8c674ece7ff9b21319d76c4ad62a67a70d552655927e5
```

Tested locally with the commands:

```
$ ./src/seth/bin/seth --rpc-url https://mainnet.optimism.io chain
optimism-mainnet

$ ./src/seth/bin/seth --rpc-url https://kovan.optimism.io chain
optimism-kovan
```

They previously would return `unknown`
@d-xo d-xo merged commit 1350bae into dapphub:master Nov 13, 2021
@d-xo
Copy link
Contributor

d-xo commented Nov 13, 2021

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 this pull request may close these issues.

2 participants