Skip to content

Commit 31cc500

Browse files
mzumsandeTheCharlatan
authored andcommitted
init: Return fatal failure on snapshot validation failure
A general reindex won't typically help in this case, and there is already some action being taken with the call to `InvalidateCoinsDBOnDisk`.
1 parent 8f1246e commit 31cc500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/chainstate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ ChainstateLoadResult LoadChainstate(ChainstateManager& chainman, const CacheSize
246246
return {init_status, init_error};
247247
}
248248
} else {
249-
return {ChainstateLoadStatus::FAILURE, _(
249+
return {ChainstateLoadStatus::FAILURE_FATAL, _(
250250
"UTXO snapshot failed to validate. "
251251
"Restart to resume normal initial block download, or try loading a different snapshot.")};
252252
}

0 commit comments

Comments
 (0)