@ -48,9 +48,7 @@ var (
Name : "removedb" ,
Name : "removedb" ,
Usage : "Remove blockchain and state databases" ,
Usage : "Remove blockchain and state databases" ,
ArgsUsage : "" ,
ArgsUsage : "" ,
Flags : [ ] cli . Flag {
Flags : utils . DatabasePathFlags ,
utils . DataDirFlag ,
} ,
Category : "DATABASE COMMANDS" ,
Category : "DATABASE COMMANDS" ,
Description : `
Description : `
Remove blockchain and state databases ` ,
Remove blockchain and state databases ` ,
@ -79,16 +77,9 @@ Remove blockchain and state databases`,
Action : utils . MigrateFlags ( inspect ) ,
Action : utils . MigrateFlags ( inspect ) ,
Name : "inspect" ,
Name : "inspect" ,
ArgsUsage : "<prefix> <start>" ,
ArgsUsage : "<prefix> <start>" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . AncientFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . SepoliaFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
Usage : "Inspect the storage size for each type of data in the database" ,
Usage : "Inspect the storage size for each type of data in the database" ,
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. ` ,
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. ` ,
}
}
@ -96,31 +87,19 @@ Remove blockchain and state databases`,
Action : utils . MigrateFlags ( dbStats ) ,
Action : utils . MigrateFlags ( dbStats ) ,
Name : "stats" ,
Name : "stats" ,
Usage : "Print leveldb statistics" ,
Usage : "Print leveldb statistics" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . SepoliaFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
}
}
dbCompactCmd = cli . Command {
dbCompactCmd = cli . Command {
Action : utils . MigrateFlags ( dbCompact ) ,
Action : utils . MigrateFlags ( dbCompact ) ,
Name : "compact" ,
Name : "compact" ,
Usage : "Compact leveldb database. WARNING: May take a very long time" ,
Usage : "Compact leveldb database. WARNING: May take a very long time" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
utils . RopstenFlag ,
utils . SepoliaFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
utils . CacheFlag ,
utils . CacheFlag ,
utils . CacheDatabaseFlag ,
utils . CacheDatabaseFlag ,
} ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
Description : ` This command performs a database compaction .
Description : ` This command performs a database compaction .
WARNING : This operation may take a very long time to finish , and may cause database
WARNING : This operation may take a very long time to finish , and may cause database
corruption if it is aborted during execution ' ! ` ,
corruption if it is aborted during execution ' ! ` ,
@ -130,15 +109,9 @@ corruption if it is aborted during execution'!`,
Name : "get" ,
Name : "get" ,
Usage : "Show the value of a database key" ,
Usage : "Show the value of a database key" ,
ArgsUsage : "<hex-encoded key>" ,
ArgsUsage : "<hex-encoded key>" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . SepoliaFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
Description : "This command looks up the specified database key from the database." ,
Description : "This command looks up the specified database key from the database." ,
}
}
dbDeleteCmd = cli . Command {
dbDeleteCmd = cli . Command {
@ -146,15 +119,9 @@ corruption if it is aborted during execution'!`,
Name : "delete" ,
Name : "delete" ,
Usage : "Delete a database key (WARNING: may corrupt your database)" ,
Usage : "Delete a database key (WARNING: may corrupt your database)" ,
ArgsUsage : "<hex-encoded key>" ,
ArgsUsage : "<hex-encoded key>" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . SepoliaFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
Description : ` This command deletes the specified database key from the database .
Description : ` This command deletes the specified database key from the database .
WARNING : This is a low - level operation which may cause database corruption ! ` ,
WARNING : This is a low - level operation which may cause database corruption ! ` ,
}
}
@ -163,15 +130,9 @@ WARNING: This is a low-level operation which may cause database corruption!`,
Name : "put" ,
Name : "put" ,
Usage : "Set the value of a database key (WARNING: may corrupt your database)" ,
Usage : "Set the value of a database key (WARNING: may corrupt your database)" ,
ArgsUsage : "<hex-encoded key> <hex-encoded value>" ,
ArgsUsage : "<hex-encoded key> <hex-encoded value>" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . SepoliaFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
Description : ` This command sets a given database key to the given value .
Description : ` This command sets a given database key to the given value .
WARNING : This is a low - level operation which may cause database corruption ! ` ,
WARNING : This is a low - level operation which may cause database corruption ! ` ,
}
}
@ -180,15 +141,9 @@ WARNING: This is a low-level operation which may cause database corruption!`,
Name : "dumptrie" ,
Name : "dumptrie" ,
Usage : "Show the storage key/values of a given storage trie" ,
Usage : "Show the storage key/values of a given storage trie" ,
ArgsUsage : "<hex-encoded storage trie root> <hex-encoded start (optional)> <int max elements (optional)>" ,
ArgsUsage : "<hex-encoded storage trie root> <hex-encoded start (optional)> <int max elements (optional)>" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . SepoliaFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
Description : "This command looks up the specified database key from the database." ,
Description : "This command looks up the specified database key from the database." ,
}
}
dbDumpFreezerIndex = cli . Command {
dbDumpFreezerIndex = cli . Command {
@ -196,15 +151,9 @@ WARNING: This is a low-level operation which may cause database corruption!`,
Name : "freezer-index" ,
Name : "freezer-index" ,
Usage : "Dump out the index of a given freezer type" ,
Usage : "Dump out the index of a given freezer type" ,
ArgsUsage : "<type> <start (int)> <end (int)>" ,
ArgsUsage : "<type> <start (int)> <end (int)>" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . SepoliaFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
Description : "This command displays information about the freezer index." ,
Description : "This command displays information about the freezer index." ,
}
}
dbImportCmd = cli . Command {
dbImportCmd = cli . Command {
@ -212,14 +161,9 @@ WARNING: This is a low-level operation which may cause database corruption!`,
Name : "import" ,
Name : "import" ,
Usage : "Imports leveldb-data from an exported RLP dump." ,
Usage : "Imports leveldb-data from an exported RLP dump." ,
ArgsUsage : "<dumpfile> <start (optional)" ,
ArgsUsage : "<dumpfile> <start (optional)" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
Description : "The import command imports the specific chain data from an RLP encoded stream." ,
Description : "The import command imports the specific chain data from an RLP encoded stream." ,
}
}
dbExportCmd = cli . Command {
dbExportCmd = cli . Command {
@ -227,29 +171,18 @@ WARNING: This is a low-level operation which may cause database corruption!`,
Name : "export" ,
Name : "export" ,
Usage : "Exports the chain data into an RLP dump. If the <dumpfile> has .gz suffix, gzip compression will be used." ,
Usage : "Exports the chain data into an RLP dump. If the <dumpfile> has .gz suffix, gzip compression will be used." ,
ArgsUsage : "<type> <dumpfile>" ,
ArgsUsage : "<type> <dumpfile>" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
Description : "Exports the specified chain data to an RLP encoded stream, optionally gzip-compressed." ,
Description : "Exports the specified chain data to an RLP encoded stream, optionally gzip-compressed." ,
}
}
dbMetadataCmd = cli . Command {
dbMetadataCmd = cli . Command {
Action : utils . MigrateFlags ( showMetaData ) ,
Action : utils . MigrateFlags ( showMetaData ) ,
Name : "metadata" ,
Name : "metadata" ,
Usage : "Shows metadata about the chain status." ,
Usage : "Shows metadata about the chain status." ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . SepoliaFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
Description : "Shows metadata about the chain status." ,
Description : "Shows metadata about the chain status." ,
}
}
dbMigrateFreezerCmd = cli . Command {
dbMigrateFreezerCmd = cli . Command {
@ -257,15 +190,9 @@ WARNING: This is a low-level operation which may cause database corruption!`,
Name : "freezer-migrate" ,
Name : "freezer-migrate" ,
Usage : "Migrate legacy parts of the freezer. (WARNING: may take a long time)" ,
Usage : "Migrate legacy parts of the freezer. (WARNING: may take a long time)" ,
ArgsUsage : "" ,
ArgsUsage : "" ,
Flags : [ ] cli . Flag {
Flags : utils . GroupFlags ( [ ] cli . Flag {
utils . DataDirFlag ,
utils . SyncModeFlag ,
utils . SyncModeFlag ,
utils . MainnetFlag ,
} , utils . NetworkFlags , utils . DatabasePathFlags ) ,
utils . RopstenFlag ,
utils . SepoliaFlag ,
utils . RinkebyFlag ,
utils . GoerliFlag ,
} ,
Description : ` The freezer - migrate command checks your database for receipts in a legacy format and updates those .
Description : ` The freezer - migrate command checks your database for receipts in a legacy format and updates those .
WARNING : please back - up the receipt files in your ancients before running this command . ` ,
WARNING : please back - up the receipt files in your ancients before running this command . ` ,
}
}