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
e4b3bd6f
Unverified
Commit
e4b3bd6f
authored
2 years ago
by
int88
Committed by
GitHub
2 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: fix uncle creation in TestFastVsFullChains (#25476)
Co-authored-by:
Felix Lange
<
fjl@twurst.com
>
parent
e93442c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
blockchain_test.go
core/blockchain_test.go
+3
-3
No files found.
core/blockchain_test.go
View file @
e4b3bd6f
...
...
@@ -759,9 +759,9 @@ func TestFastVsFullChains(t *testing.T) {
block
.
AddTx
(
tx
)
}
}
// If the block number is a multiple of 5, add a
few bonus uncles
to the block
if
i
%
5
==
5
{
block
.
AddUncle
(
&
types
.
Header
{
ParentHash
:
block
.
PrevBlock
(
i
-
1
)
.
Hash
(),
Number
:
big
.
NewInt
(
int64
(
i
-
1
))})
// If the block number is a multiple of 5, add a
n uncle
to the block
if
i
%
5
==
4
{
block
.
AddUncle
(
&
types
.
Header
{
ParentHash
:
block
.
PrevBlock
(
i
-
2
)
.
Hash
(),
Number
:
big
.
NewInt
(
int64
(
i
))})
}
})
// Import the chain as an archive node for the comparison baseline
...
...
This diff is collapsed.
Click to expand it.
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