Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit f265cc2

Browse files
authoredNov 10, 2023
cmd/geth: remove some whitespace in code and comments (#28148)
This changes just removes some whitespace
1 parent 49b2c5f commit f265cc2

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed
 

‎cmd/geth/dbcmd.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ a data corruption.`,
108108
utils.CacheFlag,
109109
utils.CacheDatabaseFlag,
110110
}, utils.NetworkFlags, utils.DatabaseFlags),
111-
Description: `This command performs a database compaction.
111+
Description: `This command performs a database compaction.
112112
WARNING: This operation may take a very long time to finish, and may cause database
113113
corruption if it is aborted during execution'!`,
114114
}
@@ -130,7 +130,7 @@ corruption if it is aborted during execution'!`,
130130
Flags: flags.Merge([]cli.Flag{
131131
utils.SyncModeFlag,
132132
}, utils.NetworkFlags, utils.DatabaseFlags),
133-
Description: `This command deletes the specified database key from the database.
133+
Description: `This command deletes the specified database key from the database.
134134
WARNING: This is a low-level operation which may cause database corruption!`,
135135
}
136136
dbPutCmd = &cli.Command{
@@ -141,7 +141,7 @@ WARNING: This is a low-level operation which may cause database corruption!`,
141141
Flags: flags.Merge([]cli.Flag{
142142
utils.SyncModeFlag,
143143
}, utils.NetworkFlags, utils.DatabaseFlags),
144-
Description: `This command sets a given database key to the given value.
144+
Description: `This command sets a given database key to the given value.
145145
WARNING: This is a low-level operation which may cause database corruption!`,
146146
}
147147
dbGetSlotsCmd = &cli.Command{

‎cmd/geth/snapshot.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ In other words, this command does the snapshot to trie conversion.
8484
Action: checkDanglingStorage,
8585
Flags: flags.Merge(utils.NetworkFlags, utils.DatabaseFlags),
8686
Description: `
87-
geth snapshot check-dangling-storage <state-root> traverses the snap storage
88-
data, and verifies that all snapshot storage data has a corresponding account.
87+
geth snapshot check-dangling-storage <state-root> traverses the snap storage
88+
data, and verifies that all snapshot storage data has a corresponding account.
8989
`,
9090
},
9191
{
@@ -96,7 +96,7 @@ data, and verifies that all snapshot storage data has a corresponding account.
9696
Flags: flags.Merge(utils.NetworkFlags, utils.DatabaseFlags),
9797
Description: `
9898
geth snapshot inspect-account <address | hash> checks all snapshot layers and prints out
99-
information about the specified address.
99+
information about the specified address.
100100
`,
101101
},
102102
{
@@ -125,7 +125,7 @@ geth snapshot traverse-rawstate <state-root>
125125
will traverse the whole state from the given root and will abort if any referenced
126126
trie node or contract code is missing. This command can be used for state integrity
127127
verification. The default checking target is the HEAD state. It's basically identical
128-
to traverse-state, but the check granularity is smaller.
128+
to traverse-state, but the check granularity is smaller.
129129
130130
It's also usable without snapshot enabled.
131131
`,
@@ -143,7 +143,7 @@ It's also usable without snapshot enabled.
143143
}, utils.NetworkFlags, utils.DatabaseFlags),
144144
Description: `
145145
This command is semantically equivalent to 'geth dump', but uses the snapshots
146-
as the backend data source, making this command a lot faster.
146+
as the backend data source, making this command a lot faster.
147147
148148
The argument is interpreted as block number or hash. If none is provided, the latest
149149
block is used.

‎cmd/utils/flags.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -2045,12 +2045,11 @@ func SplitTagsFlag(tagsFlag string) map[string]string {
20452045
return tagsMap
20462046
}
20472047

2048-
// MakeChainDatabase open an LevelDB using the flags passed to the client and will hard crash if it fails.
2048+
// MakeChainDatabase opens a database using the flags passed to the client and will hard crash if it fails.
20492049
func MakeChainDatabase(ctx *cli.Context, stack *node.Node, readonly bool) ethdb.Database {
20502050
var (
20512051
cache = ctx.Int(CacheFlag.Name) * ctx.Int(CacheDatabaseFlag.Name) / 100
20522052
handles = MakeDatabaseHandles(ctx.Int(FDLimitFlag.Name))
2053-
20542053
err error
20552054
chainDb ethdb.Database
20562055
)

0 commit comments

Comments
 (0)
This repository has been archived.