Skip to content

Commit b42c28d

Browse files
chloefealdependabot[bot]Raneet10
authored
fix: some typos (#1396)
* build(deps): bump golang.org/x/crypto from 0.24.0 to 0.31.0 Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.24.0 to 0.31.0. - [Commits](golang/crypto@v0.24.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * fix: typo Signed-off-by: chloefeal <[email protected]> * fix: typo Signed-off-by: chloefeal <[email protected]> * fix: typo Signed-off-by: chloefeal <[email protected]> * fix: typo Signed-off-by: chloefeal <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: chloefeal <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Raneet Debnath <[email protected]>
1 parent 73e7a84 commit b42c28d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

core/blockchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool) (int, error)
23932393
// Before the actual db insertion happens, verify the block against the whitelisted
23942394
// milestone and checkpoint. This is to prevent a race condition where a milestone
23952395
// or checkpoint was whitelisted while the block execution happened (and wasn't
2396-
// available sometime before) and the block turns out to be inavlid (i.e. not
2396+
// available sometime before) and the block turns out to be invalid (i.e. not
23972397
// honouring the milestone or checkpoint). Use the block itself as current block
23982398
// so that it's considered as a `past` chain and the validation doesn't get bypassed.
23992399
isValid, err = bc.forker.ValidateReorg(block.Header(), []*types.Header{block.Header()})

core/rawdb/database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func WriteOffsetOfLastAncientFreezer(db ethdb.KeyValueWriter, offset uint64) {
217217

218218
// NewDatabaseWithOnlyFreezer create a freezer db without state
219219
func NewDatabaseWithOnlyFreezer(db ethdb.KeyValueStore, frz, namespace string, readonly bool, newOffSet uint64) (*Freezer, error) {
220-
// Create the idle freezer instance, this operation should be atomic to avoid mismatch between offset and acientDB.
220+
// Create the idle freezer instance, this operation should be atomic to avoid mismatch between offset and ancientDB.
221221
frdb, err := NewChainFreezer(frz, namespace, readonly, newOffSet)
222222
if err != nil {
223223
return nil, err

core/rawdb/freezer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func NewFreezer(datadir string, namespace string, readonly bool, offset uint64,
152152
}
153153

154154
// Some blocks in ancientDB may have already been frozen and been pruned, so adding the offset to
155-
// reprensent the absolute number of blocks already frozen.
155+
// represent the absolute number of blocks already frozen.
156156
freezer.frozen.Add(offset)
157157

158158
// Create the write batch.

eth/downloader/whitelist/service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ func TestIsValidChain(t *testing.T) {
559559
s.ProcessMilestone(tempChain[1].Number.Uint64(), tempChain[1].Hash())
560560

561561
// case10: Try importing a past chain having valid checkpoint, should
562-
// consider the chain as invalid as still lastest milestone is ahead of the chain.
562+
// consider the chain as invalid as still latest milestone is ahead of the chain.
563563
res, err = s.IsValidChain(tempChain[1], chainA)
564564
require.Nil(t, err)
565565
require.Equal(t, res, false, "expected chain to be invalid")

0 commit comments

Comments
 (0)