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
4f0d8f0d
Unverified
Commit
4f0d8f0d
authored
Jul 13, 2023
by
Sina Mahmoodi
Committed by
GitHub
Jul 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
graphql: fix race in withdrawals test (#27706)
graphql: fix race in test
parent
714f7594
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
graphql_test.go
graphql/graphql_test.go
+7
-5
No files found.
graphql/graphql_test.go
View file @
4f0d8f0d
...
@@ -445,19 +445,21 @@ func newGQLService(t *testing.T, stack *node.Node, shanghai bool, gspec *core.Ge
...
@@ -445,19 +445,21 @@ func newGQLService(t *testing.T, stack *node.Node, shanghai bool, gspec *core.Ge
TrieTimeout
:
60
*
time
.
Minute
,
TrieTimeout
:
60
*
time
.
Minute
,
SnapshotCache
:
5
,
SnapshotCache
:
5
,
}
}
ethBackend
,
err
:=
eth
.
New
(
stack
,
ethConf
)
if
err
!=
nil
{
t
.
Fatalf
(
"could not create eth backend: %v"
,
err
)
}
var
engine
consensus
.
Engine
=
ethash
.
NewFaker
()
var
engine
consensus
.
Engine
=
ethash
.
NewFaker
()
if
shanghai
{
if
shanghai
{
engine
=
beacon
.
NewFaker
()
engine
=
beacon
.
NewFaker
()
chainCfg
:=
gspec
.
Config
chainCfg
:=
gspec
.
Config
chainCfg
.
TerminalTotalDifficultyPassed
=
true
chainCfg
.
TerminalTotalDifficultyPassed
=
true
chainCfg
.
TerminalTotalDifficulty
=
common
.
Big0
chainCfg
.
TerminalTotalDifficulty
=
common
.
Big0
shanghaiTime
:=
uint64
(
0
)
// GenerateChain will increment timestamps by 10.
// Shanghai upgrade at block 1.
shanghaiTime
:=
uint64
(
5
)
chainCfg
.
ShanghaiTime
=
&
shanghaiTime
chainCfg
.
ShanghaiTime
=
&
shanghaiTime
}
}
ethBackend
,
err
:=
eth
.
New
(
stack
,
ethConf
)
if
err
!=
nil
{
t
.
Fatalf
(
"could not create eth backend: %v"
,
err
)
}
// Create some blocks and import them
// Create some blocks and import them
chain
,
_
:=
core
.
GenerateChain
(
params
.
AllEthashProtocolChanges
,
ethBackend
.
BlockChain
()
.
Genesis
(),
chain
,
_
:=
core
.
GenerateChain
(
params
.
AllEthashProtocolChanges
,
ethBackend
.
BlockChain
()
.
Genesis
(),
engine
,
ethBackend
.
ChainDb
(),
genBlocks
,
genfunc
)
engine
,
ethBackend
.
ChainDb
(),
genBlocks
,
genfunc
)
...
...
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