feat : Cleanup L1 Genesis Generation and removed unused crypto dependencies#12557
feat : Cleanup L1 Genesis Generation and removed unused crypto dependencies#12557mahmudsudo wants to merge 4 commits intoethereum-optimism:developfrom mahmudsudo:develop
Conversation
|
Can you please also remove $ git grep -rin l1useclique
op-chain-ops/genesis/config.go:786: // L1UseClique represents whether or not to use the clique consensus engine.
op-chain-ops/genesis/config.go:787: L1UseClique bool `json:"l1UseClique"`
op-chain-ops/genesis/genesis.go:149: if config.L1UseClique {
op-chain-ops/genesis/genesis.go:181: if !config.L1UseClique && config.L1CancunTimeOffset != nil {
op-chain-ops/genesis/testdata/test-deploy-config-full.json:9: "l1UseClique": false,
op-e2e/config/init.go:206: dc.L1UseClique = false
packages/contracts-bedrock/deploy-config/sepolia-devnet-0.json:19: "l1UseClique": false,Also the op-chain-ops/genesis/config.go:783: // CliqueSignerAddress represents the signer address for the clique consensus engine.
op-chain-ops/genesis/config.go:785: CliqueSignerAddress common.Address `json:"cliqueSignerAddress"`
op-chain-ops/genesis/genesis.go:156: extraData = append(append(make([]byte, 32), config.CliqueSignerAddress[:]...), make([]byte, crypto.SignatureLength)...)
op-chain-ops/genesis/testdata/test-deploy-config-full.json:10: "cliqueSignerAddress": "0x0000000000000000000000000000000000000000",
packages/contracts-bedrock/deploy-config/sepolia-devnet-0.json:18: "cliqueSignerAddress": "0x0000000000000000000000000000000000000000", |
…sed crypto dependencies
made the necessary adjustment |
|
CI is currently failing |
…sed crypto dependencies
|
/ci authorize fc71aa6 |
|
Given the failure in CI, looks like we need to make a small modification to make it pass This is the error: You can see how the error is created here: https://github.com/ethereum/go-ethereum/blob/3e567b8b2901611f004b5a6070a9b6d286be128d/eth/ethconfig/config.go#L165 This means we should make a modification around here in the callstack: by adding the TerminalTotalDifficulty to the chain config, it should be fine if it is big.NewInt(0), it just cannot be nil. There may be a few other places where this will be needed to be added
|
| chainConfig.MergeNetsplitBlock = big.NewInt(0) | ||
| chainConfig.TerminalTotalDifficulty = big.NewInt(0) | ||
| chainConfig.TerminalTotalDifficultyPassed = true | ||
| chainConfig.ShanghaiTime = u64ptr(0) | ||
| chainConfig.CancunTime = u64ptr(0) |
There was a problem hiding this comment.
This part is important to keep to fix the error.
|
Closing in favor of #12977 |
Description
Cleanup L1 Genesis Generation by removing clique support
Tests
There was no need for additional tests as this was a refactor
all former tests passes
-closes #12518