refactor: Reuse MakeUnorderedList where possible
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -36,6 +36,7 @@
|
|||||||
#include <txmempool.h>
|
#include <txmempool.h>
|
||||||
#include <undo.h>
|
#include <undo.h>
|
||||||
#include <util/strencodings.h>
|
#include <util/strencodings.h>
|
||||||
|
#include <util/string.h>
|
||||||
#include <util/system.h>
|
#include <util/system.h>
|
||||||
#include <util/translation.h>
|
#include <util/translation.h>
|
||||||
#include <validation.h>
|
#include <validation.h>
|
||||||
@@ -1328,7 +1329,7 @@ static RPCHelpMan verifychain()
|
|||||||
"\nVerifies blockchain database.\n",
|
"\nVerifies blockchain database.\n",
|
||||||
{
|
{
|
||||||
{"checklevel", RPCArg::Type::NUM, RPCArg::DefaultHint{strprintf("%d, range=0-4", DEFAULT_CHECKLEVEL)},
|
{"checklevel", RPCArg::Type::NUM, RPCArg::DefaultHint{strprintf("%d, range=0-4", DEFAULT_CHECKLEVEL)},
|
||||||
strprintf("How thorough the block verification is:\n - %s", Join(CHECKLEVEL_DOC, "\n- "))},
|
strprintf("How thorough the block verification is:\n%s", MakeUnorderedList(CHECKLEVEL_DOC))},
|
||||||
{"nblocks", RPCArg::Type::NUM, RPCArg::DefaultHint{strprintf("%d, 0=all", DEFAULT_CHECKBLOCKS)}, "The number of blocks to check."},
|
{"nblocks", RPCArg::Type::NUM, RPCArg::DefaultHint{strprintf("%d, 0=all", DEFAULT_CHECKBLOCKS)}, "The number of blocks to check."},
|
||||||
},
|
},
|
||||||
RPCResult{
|
RPCResult{
|
||||||
|
|||||||
+2
-2
@@ -502,11 +502,11 @@ bool ArgsManager::InitSettings(std::string& error)
|
|||||||
|
|
||||||
std::vector<std::string> errors;
|
std::vector<std::string> errors;
|
||||||
if (!ReadSettingsFile(&errors)) {
|
if (!ReadSettingsFile(&errors)) {
|
||||||
error = strprintf("Failed loading settings file:\n- %s\n", Join(errors, "\n- "));
|
error = strprintf("Failed loading settings file:\n%s\n", MakeUnorderedList(errors));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!WriteSettingsFile(&errors)) {
|
if (!WriteSettingsFile(&errors)) {
|
||||||
error = strprintf("Failed saving settings file:\n- %s\n", Join(errors, "\n- "));
|
error = strprintf("Failed saving settings file:\n%s\n", MakeUnorderedList(errors));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in new issue
Block a user