mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
[validation] Add CValidationState subclasses
Split CValidationState into TxValidationState and BlockValidationState to store validation results for transactions and blocks respectively.
This commit is contained in:
parent
48cb468ce3
commit
a27a2957ed
33 changed files with 363 additions and 323 deletions
|
|
@ -712,7 +712,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
|
||||
CValidationState state;
|
||||
BlockValidationState state;
|
||||
if (!ActivateBestChain(state, chainparams)) {
|
||||
LogPrintf("Failed to connect best block (%s)\n", FormatStateMessage(state));
|
||||
StartShutdown();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue