Commit 48068627 authored by EvanJRichard's avatar EvanJRichard

Start to tweak things in dencun_fork_test: mainly replacing "shanghai" with "Cancun"

parent 149a6bc0
...@@ -10,18 +10,18 @@ import ( ...@@ -10,18 +10,18 @@ import (
"github.com/ethereum-optimism/optimism/op-node/testlog" "github.com/ethereum-optimism/optimism/op-node/testlog"
) )
func TestShapellaL1Fork(gt *testing.T) { func TestDencunL1Fork(gt *testing.T) {
t := NewDefaultTesting(gt) t := NewDefaultTesting(gt)
dp := e2eutils.MakeDeployParams(t, defaultRollupTestParams) dp := e2eutils.MakeDeployParams(t, defaultRollupTestParams)
sd := e2eutils.Setup(t, dp, defaultAlloc) sd := e2eutils.Setup(t, dp, defaultAlloc)
activation := sd.L1Cfg.Timestamp + 24 activation := sd.L1Cfg.Timestamp + 24
sd.L1Cfg.Config.ShanghaiTime = &activation sd.L1Cfg.Config.CancunTime = &activation
log := testlog.Logger(t, log.LvlDebug) log := testlog.Logger(t, log.LvlDebug)
_, _, miner, sequencer, _, verifier, _, batcher := setupReorgTestActors(t, dp, sd, log) _, _, miner, sequencer, _, verifier, _, batcher := setupReorgTestActors(t, dp, sd, log)
require.False(t, sd.L1Cfg.Config.IsShanghai(miner.l1Chain.CurrentBlock().Time()), "not active yet") require.False(t, sd.L1Cfg.Config.IsCancun(miner.l1Chain.CurrentBlock().Time()), "not active yet")
// start op-nodes // start op-nodes
sequencer.ActL2PipelineFull(t) sequencer.ActL2PipelineFull(t)
...@@ -32,11 +32,11 @@ func TestShapellaL1Fork(gt *testing.T) { ...@@ -32,11 +32,11 @@ func TestShapellaL1Fork(gt *testing.T) {
miner.ActEmptyBlock(t) miner.ActEmptyBlock(t)
miner.ActEmptyBlock(t) miner.ActEmptyBlock(t)
// verify Shanghai is active // verify Cancun is active
l1Head := miner.l1Chain.CurrentBlock() l1Head := miner.l1Chain.CurrentBlock()
require.True(t, sd.L1Cfg.Config.IsShanghai(l1Head.Time())) require.True(t, sd.L1Cfg.Config.IsCancun(l1Head.Time()))
// build L2 chain up to and including L2 blocks referencing shanghai L1 blocks // build L2 chain up to and including L2 blocks referencing Cancun L1 blocks
sequencer.ActL1HeadSignal(t) sequencer.ActL1HeadSignal(t)
sequencer.ActBuildToL1Head(t) sequencer.ActBuildToL1Head(t)
miner.ActL1StartBlock(12)(t) miner.ActL1StartBlock(12)(t)
...@@ -47,7 +47,7 @@ func TestShapellaL1Fork(gt *testing.T) { ...@@ -47,7 +47,7 @@ func TestShapellaL1Fork(gt *testing.T) {
// sync verifier // sync verifier
verifier.ActL1HeadSignal(t) verifier.ActL1HeadSignal(t)
verifier.ActL2PipelineFull(t) verifier.ActL2PipelineFull(t)
// verify verifier accepted shanghai L1 inputs // verify verifier accepted Cancun L1 inputs
require.Equal(t, l1Head.Hash(), verifier.SyncStatus().SafeL2.L1Origin.Hash, "verifier synced L1 chain that includes shanghai headers") require.Equal(t, l1Head.Hash(), verifier.SyncStatus().SafeL2.L1Origin.Hash, "verifier synced L1 chain that includes Cancun headers")
require.Equal(t, sequencer.SyncStatus().UnsafeL2, verifier.SyncStatus().UnsafeL2, "verifier and sequencer agree") require.Equal(t, sequencer.SyncStatus().UnsafeL2, verifier.SyncStatus().UnsafeL2, "verifier and sequencer agree")
} }
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