Skip to content

Commit 3a58476

Browse files
chuwtjagdeep sidhu
authored andcommitted
eth/downloader: fix typo in comment (ethereum#23413)
1 parent 76ba623 commit 3a58476

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/rawdb/freezer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func (f *freezer) freeze(db ethdb.KeyValueStore) {
414414
}
415415
batch.Reset()
416416

417-
// Wipe out side chains also and track dangling side chians
417+
// Wipe out side chains also and track dangling side chains
418418
var dangling []common.Hash
419419
for number := first; number < f.frozen; number++ {
420420
// Always keep the genesis block in active database

eth/downloader/downloader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash, td *big.I
466466
}
467467
if mode == FastSync && pivot == nil {
468468
// If no pivot block was returned, the head is below the min full block
469-
// threshold (i.e. new chian). In that case we won't really fast sync
469+
// threshold (i.e. new chain). In that case we won't really fast sync
470470
// anyway, but still need a valid pivot block to avoid some code hitting
471471
// nil panics on an access.
472472
pivot = d.blockchain.CurrentBlock().Header()
@@ -682,7 +682,7 @@ func (d *Downloader) fetchHead(p *peerConnection) (head *types.Header, pivot *ty
682682
return head, nil, nil
683683
}
684684
// At this point we have 2 headers in total and the first is the
685-
// validated head of the chian. Check the pivot number and return,
685+
// validated head of the chain. Check the pivot number and return,
686686
pivot := headers[1]
687687
if pivot.Number.Uint64() != head.Number.Uint64()-uint64(fsMinFullBlocks) {
688688
return nil, nil, fmt.Errorf("%w: remote pivot %d != requested %d", errInvalidChain, pivot.Number, head.Number.Uint64()-uint64(fsMinFullBlocks))

0 commit comments

Comments
 (0)