diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-07-30 23:59:52 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-12 19:04:44 +0100 |
commit | c6e200a8ab36633f1a3598f54e9e9f8ca5b6c461 (patch) | |
tree | ea6daba17f812353d05ac4d2413cca21bff93871 /src/common/command_line.cpp | |
parent | Merge pull request #2271 (diff) | |
download | monero-c6e200a8ab36633f1a3598f54e9e9f8ca5b6c461.tar.xz |
core: add --db-salvage command line flag
Use to load the database when the primary meta page is corrupted
Diffstat (limited to '')
-rw-r--r-- | src/common/command_line.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/command_line.cpp b/src/common/command_line.cpp index 8c2796bbe..5f60bef89 100644 --- a/src/common/command_line.cpp +++ b/src/common/command_line.cpp @@ -107,6 +107,11 @@ namespace command_line , "Specify sync option, using format [safe|fast|fastest]:[sync|async]:[nblocks_per_sync]." , "fast:async:1000" }; + const arg_descriptor<bool> arg_db_salvage = { + "db-salvage" + , "Try to salvage a blockchain database if it seems corrupted" + , false + }; const command_line::arg_descriptor<uint64_t> arg_fast_block_sync = { "fast-block-sync" , "Sync up most of the way by using embedded, known block hashes." |