Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
65916c54
Commit
65916c54
authored
Nov 06, 2023
by
EvanJRichard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some commented-out cruft.
parent
acf1c64c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
dencun_fork_test.go
op-e2e/actions/dencun_fork_test.go
+1
-21
No files found.
op-e2e/actions/dencun_fork_test.go
View file @
65916c54
...
@@ -12,14 +12,6 @@ import (
...
@@ -12,14 +12,6 @@ import (
)
)
func
TestDencunL1Fork
(
gt
*
testing
.
T
)
{
func
TestDencunL1Fork
(
gt
*
testing
.
T
)
{
// t := NewDefaultTesting(gt)
// dp := e2eutils.MakeDeployParams(t, defaultRollupTestParams)
// sd := e2eutils.Setup(t, dp, defaultAlloc)
// activation := sd.L1Cfg.Timestamp + 24
// sd.L1Cfg.Config.CancunTime = &activation
// log := testlog.Logger(t, log.LvlDebug)
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
)
...
@@ -38,24 +30,12 @@ func TestDencunL1Fork(gt *testing.T) {
...
@@ -38,24 +30,12 @@ func TestDencunL1Fork(gt *testing.T) {
// build empty L1 blocks, crossing the fork boundary
// build empty L1 blocks, crossing the fork boundary
miner
.
ActL1SetFeeRecipient
(
common
.
Address
{
'A'
,
0
})
miner
.
ActL1SetFeeRecipient
(
common
.
Address
{
'A'
,
0
})
miner
.
ActEmptyBlock
(
t
)
miner
.
ActEmptyBlock
(
t
)
miner
.
ActL1SetFeeRecipient
(
common
.
Address
{
'A'
,
0
})
miner
.
ActEmptyBlock
(
t
)
// Cancun activates here
miner
.
ActEmptyBlock
(
t
)
//// test fails here as cancun activates
/*
########## BAD BLOCK #########
Block: 2 (0xf227de28aae80d15e8a50c5639a9b31be65fdefe97e21eadd23b957bd3d6ee5a)
Error: header is missing beaconRoot
Platform: geth 0.1.0-unstable go1.21.3 arm64 darwin
Chain config: ¶ms.ChainConfig{ChainID:900, HomesteadBlock:0, DAOForkBlock:<nil>, DAOForkSupport:false, EIP150Block:0, EIP155Block:0, EIP158Block:0, ByzantiumBlock:0, ConstantinopleBlock:0, PetersburgBlock:0, IstanbulBlock:0, MuirGlacierBlock:0, BerlinBlock:0, LondonBlock:0, ArrowGlacierBlock:0, GrayGlacierBlock:0, MergeNetsplitBlock:0, ShanghaiTime:(*uint64)(0x1400038f4a0), CancunTime:(*uint64)(0x14000364f98), PragueTime:(*uint64)(nil), VerkleTime:(*uint64)(nil), BedrockBlock:<nil>, RegolithTime:(*uint64)(nil), CanyonTime:(*uint64)(nil), TerminalTotalDifficulty:0, TerminalTotalDifficultyPassed:true, Ethash:(*params.EthashConfig)(nil), Clique:(*params.CliqueConfig)(nil), IsDevMode:false, Optimism:(*params.OptimismConfig)(nil)}
Receipts:
##############################
*/
miner
.
ActEmptyBlock
(
t
)
miner
.
ActEmptyBlock
(
t
)
// verify Cancun is active
// verify Cancun is active
l1Head
=
miner
.
l1Chain
.
CurrentBlock
()
l1Head
=
miner
.
l1Chain
.
CurrentBlock
()
require
.
True
(
t
,
sd
.
L1Cfg
.
Config
.
IsCancun
(
l1Head
.
Number
,
l1Head
.
Time
),
"Cancun active"
)
require
.
True
(
t
,
sd
.
L1Cfg
.
Config
.
IsCancun
(
l1Head
.
Number
,
l1Head
.
Time
),
"Cancun active"
)
//NEXT THING TO DO AFTER MERGE OF PR #7993: Also, add a few blob txs in as dummy data
// build L2 chain up to and including L2 blocks referencing Cancun 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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment