48
48
Name : "removedb" ,
49
49
Usage : "Remove blockchain and state databases" ,
50
50
ArgsUsage : "" ,
51
- Flags : utils .DatabasePathFlags ,
51
+ Flags : utils .DatabaseFlags ,
52
52
Description : `
53
53
Remove blockchain and state databases` ,
54
54
}
@@ -77,15 +77,15 @@ Remove blockchain and state databases`,
77
77
ArgsUsage : "<prefix> <start>" ,
78
78
Flags : flags .Merge ([]cli.Flag {
79
79
utils .SyncModeFlag ,
80
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
80
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
81
81
Usage : "Inspect the storage size for each type of data in the database" ,
82
82
Description : `This commands iterates the entire database. If the optional 'prefix' and 'start' arguments are provided, then the iteration is limited to the given subset of data.` ,
83
83
}
84
84
dbCheckStateContentCmd = & cli.Command {
85
85
Action : checkStateContent ,
86
86
Name : "check-state-content" ,
87
87
ArgsUsage : "<start (optional)>" ,
88
- Flags : flags .Merge (utils .NetworkFlags , utils .DatabasePathFlags ),
88
+ Flags : flags .Merge (utils .NetworkFlags , utils .DatabaseFlags ),
89
89
Usage : "Verify that state data is cryptographically correct" ,
90
90
Description : `This command iterates the entire database for 32-byte keys, looking for rlp-encoded trie nodes.
91
91
For each trie node encountered, it checks that the key corresponds to the keccak256(value). If this is not true, this indicates
@@ -97,7 +97,7 @@ a data corruption.`,
97
97
Usage : "Print leveldb statistics" ,
98
98
Flags : flags .Merge ([]cli.Flag {
99
99
utils .SyncModeFlag ,
100
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
100
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
101
101
}
102
102
dbCompactCmd = & cli.Command {
103
103
Action : dbCompact ,
@@ -107,7 +107,7 @@ a data corruption.`,
107
107
utils .SyncModeFlag ,
108
108
utils .CacheFlag ,
109
109
utils .CacheDatabaseFlag ,
110
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
110
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
111
111
Description : `This command performs a database compaction.
112
112
WARNING: This operation may take a very long time to finish, and may cause database
113
113
corruption if it is aborted during execution'!` ,
@@ -119,7 +119,7 @@ corruption if it is aborted during execution'!`,
119
119
ArgsUsage : "<hex-encoded key>" ,
120
120
Flags : flags .Merge ([]cli.Flag {
121
121
utils .SyncModeFlag ,
122
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
122
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
123
123
Description : "This command looks up the specified database key from the database." ,
124
124
}
125
125
dbDeleteCmd = & cli.Command {
@@ -129,7 +129,7 @@ corruption if it is aborted during execution'!`,
129
129
ArgsUsage : "<hex-encoded key>" ,
130
130
Flags : flags .Merge ([]cli.Flag {
131
131
utils .SyncModeFlag ,
132
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
132
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
133
133
Description : `This command deletes the specified database key from the database.
134
134
WARNING: This is a low-level operation which may cause database corruption!` ,
135
135
}
@@ -140,7 +140,7 @@ WARNING: This is a low-level operation which may cause database corruption!`,
140
140
ArgsUsage : "<hex-encoded key> <hex-encoded value>" ,
141
141
Flags : flags .Merge ([]cli.Flag {
142
142
utils .SyncModeFlag ,
143
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
143
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
144
144
Description : `This command sets a given database key to the given value.
145
145
WARNING: This is a low-level operation which may cause database corruption!` ,
146
146
}
@@ -151,8 +151,7 @@ WARNING: This is a low-level operation which may cause database corruption!`,
151
151
ArgsUsage : "<hex-encoded state root> <hex-encoded account hash> <hex-encoded storage trie root> <hex-encoded start (optional)> <int max elements (optional)>" ,
152
152
Flags : flags .Merge ([]cli.Flag {
153
153
utils .SyncModeFlag ,
154
- utils .StateSchemeFlag ,
155
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
154
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
156
155
Description : "This command looks up the specified database key from the database." ,
157
156
}
158
157
dbDumpFreezerIndex = & cli.Command {
@@ -162,7 +161,7 @@ WARNING: This is a low-level operation which may cause database corruption!`,
162
161
ArgsUsage : "<freezer-type> <table-type> <start (int)> <end (int)>" ,
163
162
Flags : flags .Merge ([]cli.Flag {
164
163
utils .SyncModeFlag ,
165
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
164
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
166
165
Description : "This command displays information about the freezer index." ,
167
166
}
168
167
dbImportCmd = & cli.Command {
@@ -172,7 +171,7 @@ WARNING: This is a low-level operation which may cause database corruption!`,
172
171
ArgsUsage : "<dumpfile> <start (optional)" ,
173
172
Flags : flags .Merge ([]cli.Flag {
174
173
utils .SyncModeFlag ,
175
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
174
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
176
175
Description : "The import command imports the specific chain data from an RLP encoded stream." ,
177
176
}
178
177
dbExportCmd = & cli.Command {
@@ -182,7 +181,7 @@ WARNING: This is a low-level operation which may cause database corruption!`,
182
181
ArgsUsage : "<type> <dumpfile>" ,
183
182
Flags : flags .Merge ([]cli.Flag {
184
183
utils .SyncModeFlag ,
185
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
184
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
186
185
Description : "Exports the specified chain data to an RLP encoded stream, optionally gzip-compressed." ,
187
186
}
188
187
dbMetadataCmd = & cli.Command {
@@ -191,7 +190,7 @@ WARNING: This is a low-level operation which may cause database corruption!`,
191
190
Usage : "Shows metadata about the chain status." ,
192
191
Flags : flags .Merge ([]cli.Flag {
193
192
utils .SyncModeFlag ,
194
- }, utils .NetworkFlags , utils .DatabasePathFlags ),
193
+ }, utils .NetworkFlags , utils .DatabaseFlags ),
195
194
Description : "Shows metadata about the chain status." ,
196
195
}
197
196
)
0 commit comments