@@ -34,7 +34,7 @@ import (
3434 "github.com/olekukonko/tablewriter"
3535)
3636
37- // freezerdb is a database wrapper that enabled freezer data retrievals.
37+ // freezerdb is a database wrapper that enables freezer data retrievals.
3838type freezerdb struct {
3939 ancientRoot string
4040 ethdb.KeyValueStore
@@ -141,7 +141,7 @@ func (db *nofreezedb) ReadAncients(fn func(reader ethdb.AncientReaderOp) error)
141141 // Unlike other ancient-related methods, this method does not return
142142 // errNotSupported when invoked.
143143 // The reason for this is that the caller might want to do several things:
144- // 1. Check if something is in freezer,
144+ // 1. Check if something is in the freezer,
145145 // 2. If not, check leveldb.
146146 //
147147 // This will work, since the ancient-checks inside 'fn' will return errors,
@@ -209,7 +209,7 @@ func NewDatabaseWithFreezer(db ethdb.KeyValueStore, ancient string, namespace st
209209 // of the freezer and database. Ensure that we don't shoot ourselves in the foot
210210 // by serving up conflicting data, leading to both datastores getting corrupted.
211211 //
212- // - If both the freezer and key-value store is empty (no genesis), we just
212+ // - If both the freezer and key-value store are empty (no genesis), we just
213213 // initialized a new empty freezer, so everything's fine.
214214 // - If the key-value store is empty, but the freezer is not, we need to make
215215 // sure the user's genesis matches the freezer. That will be checked in the
@@ -218,7 +218,7 @@ func NewDatabaseWithFreezer(db ethdb.KeyValueStore, ancient string, namespace st
218218 // - If neither the key-value store nor the freezer is empty, cross validate
219219 // the genesis hashes to make sure they are compatible. If they are, also
220220 // ensure that there's no gap between the freezer and subsequently leveldb.
221- // - If the key-value store is not empty, but the freezer is we might just be
221+ // - If the key-value store is not empty, but the freezer is, we might just be
222222 // upgrading to the freezer release, or we might have had a small chain and
223223 // not frozen anything yet. Ensure that no blocks are missing yet from the
224224 // key-value store, since that would mean we already had an old freezer.
@@ -634,7 +634,7 @@ func printChainMetadata(db ethdb.KeyValueStore) {
634634 fmt .Fprintf (os .Stderr , "\n \n " )
635635}
636636
637- // ReadChainMetadata returns a set of key/value pairs that contains informatin
637+ // ReadChainMetadata returns a set of key/value pairs that contains information
638638// about the database chain status. This can be used for diagnostic purposes
639639// when investigating the state of the node.
640640func ReadChainMetadata (db ethdb.KeyValueStore ) [][]string {
0 commit comments