Skip to content

Commit eb94896

Browse files
Chore: Minimal gramatical errors (signleton -> singleton) (#25057)
core: fix typos
1 parent 3f5b5ec commit eb94896

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

core/blockchain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ func TestReorgShortBlocks(t *testing.T) { testReorgShort(t, true) }
503503
func testReorgShort(t *testing.T, full bool) {
504504
// Create a long easy chain vs. a short heavy one. Due to difficulty adjustment
505505
// we need a fairly long chain of blocks with different difficulties for a short
506-
// one to become heavyer than a long one. The 96 is an empirical value.
506+
// one to become heavier than a long one. The 96 is an empirical value.
507507
easy := make([]int64, 96)
508508
for i := 0; i < len(easy); i++ {
509509
easy[i] = 60

core/bloombits/matcher_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ func makeRandomIndexes(lengths []int, max int) [][]bloomIndexes {
124124

125125
// testMatcherDiffBatches runs the given matches test in single-delivery and also
126126
// in batches delivery mode, verifying that all kinds of deliveries are handled
127-
// correctly withn.
127+
// correctly within.
128128
func testMatcherDiffBatches(t *testing.T, filter [][]bloomIndexes, start, blocks uint64, intermittent bool, retrievals uint32) {
129129
singleton := testMatcher(t, filter, start, blocks, intermittent, retrievals, 1)
130130
batched := testMatcher(t, filter, start, blocks, intermittent, retrievals, 16)
131131

132132
if singleton != batched {
133-
t.Errorf("filter = %v blocks = %v intermittent = %v: request count mismatch, %v in signleton vs. %v in batched mode", filter, blocks, intermittent, singleton, batched)
133+
t.Errorf("filter = %v blocks = %v intermittent = %v: request count mismatch, %v in singleton vs. %v in batched mode", filter, blocks, intermittent, singleton, batched)
134134
}
135135
}
136136

core/state/pruner/bloom.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (f stateBloomHasher) BlockSize() int { panic("not implem
3939
func (f stateBloomHasher) Size() int { return 8 }
4040
func (f stateBloomHasher) Sum64() uint64 { return binary.BigEndian.Uint64(f) }
4141

42-
// stateBloom is a bloom filter used during the state convesion(snapshot->state).
42+
// stateBloom is a bloom filter used during the state conversion(snapshot->state).
4343
// The keys of all generated entries will be recorded here so that in the pruning
4444
// stage the entries belong to the specific version can be avoided for deletion.
4545
//
@@ -100,7 +100,7 @@ func (bloom *stateBloom) Commit(filename, tempname string) error {
100100
}
101101
f.Close()
102102

103-
// Move the teporary file into it's final location
103+
// Move the temporary file into it's final location
104104
return os.Rename(tempname, filename)
105105
}
106106

0 commit comments

Comments
 (0)