Skip to content

Commit 2b48602

Browse files
john-difoolsadoci
authored andcommitted
consensus/ethash: fix typos in var names (ethereum#24745)
1 parent a2652e4 commit 2b48602

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

consensus/ethash/consensus.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ func calcDifficultyFrontier(time uint64, parent *types.Header) *big.Int {
517517
}
518518

519519
// Exported for fuzzing
520-
var FrontierDifficultyCalulator = calcDifficultyFrontier
521-
var HomesteadDifficultyCalulator = calcDifficultyHomestead
520+
var FrontierDifficultyCalculator = calcDifficultyFrontier
521+
var HomesteadDifficultyCalculator = calcDifficultyHomestead
522522
var DynamicDifficultyCalculator = makeDifficultyCalculator
523523

524524
// verifySeal checks whether a block satisfies the PoW difficulty requirements,

consensus/ethash/consensus_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ func TestDifficultyCalculators(t *testing.T) {
121121
bigFn func(time uint64, parent *types.Header) *big.Int
122122
u256Fn func(time uint64, parent *types.Header) *big.Int
123123
}{
124-
{FrontierDifficultyCalulator, CalcDifficultyFrontierU256},
125-
{HomesteadDifficultyCalulator, CalcDifficultyHomesteadU256},
124+
{FrontierDifficultyCalculator, CalcDifficultyFrontierU256},
125+
{HomesteadDifficultyCalculator, CalcDifficultyHomesteadU256},
126126
{DynamicDifficultyCalculator(bombDelay), MakeDifficultyCalculatorU256(bombDelay)},
127127
} {
128128
time := header.Time + timeDelta

tests/fuzzers/difficulty/difficulty-fuzz.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ func (f *fuzzer) fuzz() int {
132132
bigFn calculator
133133
u256Fn calculator
134134
}{
135-
{ethash.FrontierDifficultyCalulator, ethash.CalcDifficultyFrontierU256},
136-
{ethash.HomesteadDifficultyCalulator, ethash.CalcDifficultyHomesteadU256},
135+
{ethash.FrontierDifficultyCalculator, ethash.CalcDifficultyFrontierU256},
136+
{ethash.HomesteadDifficultyCalculator, ethash.CalcDifficultyHomesteadU256},
137137
{ethash.DynamicDifficultyCalculator(bombDelay), ethash.MakeDifficultyCalculatorU256(bombDelay)},
138138
} {
139139
want := pair.bigFn(time, header)

0 commit comments

Comments
 (0)