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
bc2b4de2
Commit
bc2b4de2
authored
Nov 02, 2023
by
EvanJRichard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add how test is failing just for onlookers.
parent
d57f75f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
dencun_fork_test.go
op-e2e/actions/dencun_fork_test.go
+23
-4
No files found.
op-e2e/actions/dencun_fork_test.go
View file @
bc2b4de2
...
...
@@ -3,6 +3,7 @@ package actions
import
(
"testing"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
@@ -11,14 +12,20 @@ import (
)
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
)
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
)
_
,
_
,
miner
,
sequencer
,
_
,
verifier
,
_
,
batcher
:=
setupReorgTestActors
(
t
,
dp
,
sd
,
log
)
l1Head
:=
miner
.
l1Chain
.
CurrentBlock
()
...
...
@@ -29,10 +36,22 @@ func TestDencunL1Fork(gt *testing.T) {
verifier
.
ActL2PipelineFull
(
t
)
// build empty L1 blocks, crossing the fork boundary
miner
.
Act
EmptyBlock
(
t
)
// test fails here
miner
.
Act
L1SetFeeRecipient
(
common
.
Address
{
'A'
,
0
})
miner
.
ActEmptyBlock
(
t
)
miner
.
ActL1SetFeeRecipient
(
common
.
Address
{
'A'
,
0
})
miner
.
ActEmptyBlock
(
t
)
//// test fails here
/*
########## 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:
##############################
*/
return
miner
.
ActEmptyBlock
(
t
)
return
// verify Cancun is active
l1Head
=
miner
.
l1Chain
.
CurrentBlock
()
require
.
True
(
t
,
sd
.
L1Cfg
.
Config
.
IsCancun
(
l1Head
.
Number
,
l1Head
.
Time
),
"Cancun active"
)
...
...
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