Skip to content

Commit 34986c1

Browse files
committed
wip
1 parent 944aacd commit 34986c1

File tree

4 files changed

+9
-76
lines changed

4 files changed

+9
-76
lines changed

op-chain-ops/cmd/celo-migrate/main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,12 @@ func ApplyMigrationChangesToDB(ldb ethdb.Database, genesis *core.Genesis, commit
391391
EIP1559Denominator: EIP1559Denominator,
392392
EIP1559Elasticity: EIP1559Elasticity,
393393
}
394-
// TODO(pl) Add Ecotone and other hardforks
394+
cfg.CanyonTime = &cel2Header.Time
395+
cfg.EcotoneTime = &cel2Header.Time
396+
397+
// TODO(pl): What about Ethereum hardforks
398+
399+
log.Info("Write new config to database", "config", cfg)
395400

396401
// Write the chain config to disk.
397402
rawdb.WriteChainConfig(ldb, cel2Block.Hash(), cfg)

op-chain-ops/cmd/celo-migrate/test_config.json

Lines changed: 0 additions & 74 deletions
This file was deleted.

op-chain-ops/genesis/layer_two.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ func BuildL2Genesis(config *DeployConfig, l1StartBlock *types.Block) (*core.Gene
122122
}
123123

124124
func PerformUpgradeTxs(db *state.MemoryStateDB) error {
125+
log.Info("Running Ecotone upgrade transactions")
126+
125127
// Only the Ecotone upgrade is performed with upgrade-txs.
126128
if !db.Genesis().Config.IsEcotone(db.Genesis().Timestamp) {
127129
return nil

op-chain-ops/squash/sim.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (sim *SquashSim) AddUpgradeTxs(txs []hexutil.Bytes) error {
165165
return fmt.Errorf("failed to turn upgrade tx %d into message: %w", i, err)
166166
}
167167
if !msg.IsDepositTx {
168-
return fmt.Errorf("upgrade tx %d is not a depost", i)
168+
return fmt.Errorf("upgrade tx %d is not a deposit", i)
169169
}
170170
if res, err := sim.AddMessage(msg); err != nil {
171171
return fmt.Errorf("invalid upgrade tx %d, EVM invocation failed: %w", i, err)

0 commit comments

Comments
 (0)