From 4024c1e86968cb27405f4315f4ca917d053c361e Mon Sep 17 00:00:00 2001 From: s7v7nislands Date: Mon, 25 Apr 2022 15:28:03 +0800 Subject: [PATCH] fix typo (#24731) --- core/rawdb/accessors_chain.go | 2 +- core/rawdb/database.go | 2 +- core/rawdb/freezer_table.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/rawdb/accessors_chain.go b/core/rawdb/accessors_chain.go index f9c224dfa8..802f57f751 100644 --- a/core/rawdb/accessors_chain.go +++ b/core/rawdb/accessors_chain.go @@ -604,7 +604,7 @@ func ReadRawReceipts(db ethdb.Reader, hash common.Hash, number uint64) types.Rec } // ReadReceipts retrieves all the transaction receipts belonging to a block, including -// its correspoinding metadata fields. If it is unable to populate these metadata +// its corresponding metadata fields. If it is unable to populate these metadata // fields then nil is returned. // // The current implementation populates these metadata fields by reading the receipts' diff --git a/core/rawdb/database.go b/core/rawdb/database.go index 5d645b61db..54107dbc80 100644 --- a/core/rawdb/database.go +++ b/core/rawdb/database.go @@ -179,7 +179,7 @@ func NewDatabaseWithFreezer(db ethdb.KeyValueStore, freezer string, namespace st // this point care, the key-value/freezer combo is valid). // - If neither the key-value store nor the freezer is empty, cross validate // the genesis hashes to make sure they are compatible. If they are, also - // ensure that there's no gap between the freezer and sunsequently leveldb. + // ensure that there's no gap between the freezer and subsequently leveldb. // - If the key-value store is not empty, but the freezer is we might just be // upgrading to the freezer release, or we might have had a small chain and // not frozen anything yet. Ensure that no blocks are missing yet from the diff --git a/core/rawdb/freezer_table.go b/core/rawdb/freezer_table.go index 01867ee8c2..dd4a80efcb 100644 --- a/core/rawdb/freezer_table.go +++ b/core/rawdb/freezer_table.go @@ -119,7 +119,7 @@ type freezerTable struct { writeMeter metrics.Meter // Meter for measuring the effective amount of data written sizeGauge metrics.Gauge // Gauge for tracking the combined size of all freezer tables - logger log.Logger // Logger with database path and table name ambedded + logger log.Logger // Logger with database path and table name embedded lock sync.RWMutex // Mutex protecting the data file descriptors }