From 31cc5006c3de4dd6a1f7a238684163956604df45 Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Tue, 8 Oct 2024 22:33:33 +0200 Subject: [PATCH] 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`. --- src/node/chainstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/chainstate.cpp b/src/node/chainstate.cpp index b3b215929a6..fa8d7a386f6 100644 --- a/src/node/chainstate.cpp +++ b/src/node/chainstate.cpp @@ -246,7 +246,7 @@ ChainstateLoadResult LoadChainstate(ChainstateManager& chainman, const CacheSize return {init_status, init_error}; } } else { - return {ChainstateLoadStatus::FAILURE, _( + return {ChainstateLoadStatus::FAILURE_FATAL, _( "UTXO snapshot failed to validate. " "Restart to resume normal initial block download, or try loading a different snapshot.")}; }