Commit 807f237d authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub

Merge branch 'develop' into op-e2e/shanghai-l1

parents f97b86ee 4ca169c0
...@@ -15,8 +15,8 @@ import ( ...@@ -15,8 +15,8 @@ import (
"github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/params"
) )
// defaultL2GasLimit represents the default gas limit for an L2 block. // defaultGasLimit represents the default gas limit for a genesis block.
const defaultL2GasLimit = 30_000_000 const defaultGasLimit = 30_000_000
// BedrockTransitionBlockExtraData represents the default extra data for the bedrock transition block. // BedrockTransitionBlockExtraData represents the default extra data for the bedrock transition block.
var BedrockTransitionBlockExtraData = []byte("BEDROCK") var BedrockTransitionBlockExtraData = []byte("BEDROCK")
...@@ -66,7 +66,7 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro ...@@ -66,7 +66,7 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
gasLimit := config.L2GenesisBlockGasLimit gasLimit := config.L2GenesisBlockGasLimit
if gasLimit == 0 { if gasLimit == 0 {
gasLimit = defaultL2GasLimit gasLimit = defaultGasLimit
} }
baseFee := config.L2GenesisBlockBaseFeePerGas baseFee := config.L2GenesisBlockBaseFeePerGas
if baseFee == nil { if baseFee == nil {
...@@ -145,7 +145,7 @@ func NewL1Genesis(config *DeployConfig) (*core.Genesis, error) { ...@@ -145,7 +145,7 @@ func NewL1Genesis(config *DeployConfig) (*core.Genesis, error) {
gasLimit := config.L1GenesisBlockGasLimit gasLimit := config.L1GenesisBlockGasLimit
if gasLimit == 0 { if gasLimit == 0 {
gasLimit = 15_000_000 gasLimit = defaultGasLimit
} }
baseFee := config.L1GenesisBlockBaseFeePerGas baseFee := config.L1GenesisBlockBaseFeePerGas
if baseFee == nil { if baseFee == nil {
......
...@@ -121,7 +121,7 @@ func BuildL1DeveloperGenesis(config *DeployConfig) (*core.Genesis, error) { ...@@ -121,7 +121,7 @@ func BuildL1DeveloperGenesis(config *DeployConfig) (*core.Genesis, error) {
} }
gasLimit := uint64(config.L2GenesisBlockGasLimit) gasLimit := uint64(config.L2GenesisBlockGasLimit)
if gasLimit == 0 { if gasLimit == 0 {
gasLimit = defaultL2GasLimit gasLimit = defaultGasLimit
} }
data, err = sysCfgABI.Pack( data, err = sysCfgABI.Pack(
...@@ -299,7 +299,7 @@ func deployL1Contracts(config *DeployConfig, backend *backends.SimulatedBackend) ...@@ -299,7 +299,7 @@ func deployL1Contracts(config *DeployConfig, backend *backends.SimulatedBackend)
} }
gasLimit := uint64(config.L2GenesisBlockGasLimit) gasLimit := uint64(config.L2GenesisBlockGasLimit)
if gasLimit == 0 { if gasLimit == 0 {
gasLimit = defaultL2GasLimit gasLimit = defaultGasLimit
} }
constructors = append(constructors, []deployer.Constructor{ constructors = append(constructors, []deployer.Constructor{
......
...@@ -17,6 +17,7 @@ import ( ...@@ -17,6 +17,7 @@ import (
"github.com/ethereum-optimism/optimism/op-node/rollup" "github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive" "github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/driver" "github.com/ethereum-optimism/optimism/op-node/rollup/driver"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/sources" "github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testutils" "github.com/ethereum-optimism/optimism/op-node/testutils"
) )
...@@ -215,6 +216,9 @@ func (s *L2Verifier) ActL2PipelineStep(t Testing) { ...@@ -215,6 +216,9 @@ func (s *L2Verifier) ActL2PipelineStep(t Testing) {
return return
} else if err != nil && errors.Is(err, derive.ErrTemporary) { } else if err != nil && errors.Is(err, derive.ErrTemporary) {
s.log.Warn("Derivation process temporary error", "err", err) s.log.Warn("Derivation process temporary error", "err", err)
if errors.Is(err, sync.WrongChainErr) { // action-tests don't back off on temporary errors. Avoid a bad genesis setup from looping.
t.Fatalf("genesis setup issue: %v", err)
}
return return
} else if err != nil && errors.Is(err, derive.ErrCritical) { } else if err != nil && errors.Is(err, derive.ErrCritical) {
t.Fatalf("derivation failed critically: %v", err) t.Fatalf("derivation failed critically: %v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment