Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
张蕾
Geth-Modification
Commits
4ada314f
Unverified
Commit
4ada314f
authored
Jan 10, 2023
by
Martin Holst Swende
Committed by
GitHub
Jan 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: fix DIFFICULTY error in state executor (#26465)
parent
b8bc8c24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
state_test_util.go
tests/state_test_util.go
+6
-9
No files found.
tests/state_test_util.go
View file @
4ada314f
...
@@ -249,16 +249,13 @@ func (t *StateTest) RunNoVerify(subtest StateSubtest, vmconfig vm.Config, snapsh
...
@@ -249,16 +249,13 @@ func (t *StateTest) RunNoVerify(subtest StateSubtest, vmconfig vm.Config, snapsh
context
.
GetHash
=
vmTestBlockHash
context
.
GetHash
=
vmTestBlockHash
context
.
BaseFee
=
baseFee
context
.
BaseFee
=
baseFee
context
.
Random
=
nil
context
.
Random
=
nil
if
config
.
IsLondon
(
new
(
big
.
Int
))
{
if
t
.
json
.
Env
.
Difficulty
!=
nil
{
if
t
.
json
.
Env
.
Random
!=
nil
{
context
.
Difficulty
=
new
(
big
.
Int
)
.
Set
(
t
.
json
.
Env
.
Difficulty
)
rnd
:=
common
.
BigToHash
(
t
.
json
.
Env
.
Random
)
}
context
.
Random
=
&
rnd
if
config
.
IsLondon
(
new
(
big
.
Int
))
&&
t
.
json
.
Env
.
Random
!=
nil
{
}
rnd
:=
common
.
BigToHash
(
t
.
json
.
Env
.
Random
)
context
.
Random
=
&
rnd
context
.
Difficulty
=
big
.
NewInt
(
0
)
context
.
Difficulty
=
big
.
NewInt
(
0
)
}
else
{
if
t
.
json
.
Env
.
Difficulty
!=
nil
{
context
.
Difficulty
=
new
(
big
.
Int
)
.
Set
(
t
.
json
.
Env
.
Difficulty
)
}
}
}
evm
:=
vm
.
NewEVM
(
context
,
txContext
,
statedb
,
config
,
vmconfig
)
evm
:=
vm
.
NewEVM
(
context
,
txContext
,
statedb
,
config
,
vmconfig
)
// Execute the message.
// Execute the message.
...
...
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