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
a52bcccf
Unverified
Commit
a52bcccf
authored
Apr 26, 2022
by
John Difool
Committed by
GitHub
Apr 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
consensus/ethash: fix typos in var names (#24745)
parent
195c2d3d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
consensus.go
consensus/ethash/consensus.go
+2
-2
consensus_test.go
consensus/ethash/consensus_test.go
+2
-2
difficulty-fuzz.go
tests/fuzzers/difficulty/difficulty-fuzz.go
+2
-2
No files found.
consensus/ethash/consensus.go
View file @
a52bcccf
...
...
@@ -507,8 +507,8 @@ func calcDifficultyFrontier(time uint64, parent *types.Header) *big.Int {
}
// Exported for fuzzing
var
FrontierDifficultyCalulator
=
calcDifficultyFrontier
var
HomesteadDifficultyCalulator
=
calcDifficultyHomestead
var
FrontierDifficultyCal
c
ulator
=
calcDifficultyFrontier
var
HomesteadDifficultyCal
c
ulator
=
calcDifficultyHomestead
var
DynamicDifficultyCalculator
=
makeDifficultyCalculator
// verifySeal checks whether a block satisfies the PoW difficulty requirements,
...
...
consensus/ethash/consensus_test.go
View file @
a52bcccf
...
...
@@ -121,8 +121,8 @@ func TestDifficultyCalculators(t *testing.T) {
bigFn
func
(
time
uint64
,
parent
*
types
.
Header
)
*
big
.
Int
u256Fn
func
(
time
uint64
,
parent
*
types
.
Header
)
*
big
.
Int
}{
{
FrontierDifficultyCalulator
,
CalcDifficultyFrontierU256
},
{
HomesteadDifficultyCalulator
,
CalcDifficultyHomesteadU256
},
{
FrontierDifficultyCal
c
ulator
,
CalcDifficultyFrontierU256
},
{
HomesteadDifficultyCal
c
ulator
,
CalcDifficultyHomesteadU256
},
{
DynamicDifficultyCalculator
(
bombDelay
),
MakeDifficultyCalculatorU256
(
bombDelay
)},
}
{
time
:=
header
.
Time
+
timeDelta
...
...
tests/fuzzers/difficulty/difficulty-fuzz.go
View file @
a52bcccf
...
...
@@ -130,8 +130,8 @@ func (f *fuzzer) fuzz() int {
bigFn
calculator
u256Fn
calculator
}{
{
ethash
.
FrontierDifficultyCalulator
,
ethash
.
CalcDifficultyFrontierU256
},
{
ethash
.
HomesteadDifficultyCalulator
,
ethash
.
CalcDifficultyHomesteadU256
},
{
ethash
.
FrontierDifficultyCal
c
ulator
,
ethash
.
CalcDifficultyFrontierU256
},
{
ethash
.
HomesteadDifficultyCal
c
ulator
,
ethash
.
CalcDifficultyHomesteadU256
},
{
ethash
.
DynamicDifficultyCalculator
(
bombDelay
),
ethash
.
MakeDifficultyCalculatorU256
(
bombDelay
)},
}
{
want
:=
pair
.
bigFn
(
time
,
header
)
...
...
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