mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Refactor FormatStateMessage into ValidationState
This commit is contained in:
parent
fe63d79eab
commit
0aed17ef28
15 changed files with 47 additions and 87 deletions
|
|
@ -51,7 +51,6 @@
|
|||
#include <util/system.h>
|
||||
#include <util/threadnames.h>
|
||||
#include <util/translation.h>
|
||||
#include <util/validation.h>
|
||||
#include <util/asmap.h>
|
||||
#include <validation.h>
|
||||
#include <hash.h>
|
||||
|
|
@ -710,7 +709,7 @@ static void ThreadImport(std::vector<fs::path> vImportFiles)
|
|||
// scan for better chains in the block chain database, that are not yet connected in the active best chain
|
||||
BlockValidationState state;
|
||||
if (!ActivateBestChain(state, chainparams)) {
|
||||
LogPrintf("Failed to connect best block (%s)\n", FormatStateMessage(state));
|
||||
LogPrintf("Failed to connect best block (%s)\n", state.ToString());
|
||||
StartShutdown();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue