0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

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`.
This commit is contained in:
Martin Zumsande 2024-10-08 22:33:33 +02:00 committed by TheCharlatan
parent 8f1246e833
commit 31cc5006c3
No known key found for this signature in database
GPG key ID: 9B79B45691DB4173

View file

@ -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.")};
}