This adds coverage to the ActivateSnapshot
function asserting that when we try to use a snapshot with too little work done on it, using loadtxoutset
. That this log and rpc error are thrown
log
[snapshot] activation failed - work does not exceed active chainstate
[snapshot] activation failed - population failed
rpc error
Unable to load UTXO snapshot
Adds coverage to this code https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L5659