Skip to content

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