mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 09:15:04 +02:00
refactor: Move early loadtxoutset checks into ActiveSnapshot
Also changes the return type of ActiveSnapshot to allow returning the error message to the user of the loadtxoutset RPC.
This commit is contained in:
@@ -54,7 +54,7 @@ FUZZ_TARGET(utxo_snapshot, .init = initialize_chain)
|
||||
} catch (const std::ios_base::failure&) {
|
||||
return false;
|
||||
}
|
||||
return chainman.ActivateSnapshot(infile, metadata, /*in_memory=*/true);
|
||||
return !!chainman.ActivateSnapshot(infile, metadata, /*in_memory=*/true);
|
||||
}};
|
||||
|
||||
if (fuzzed_data_provider.ConsumeBool()) {
|
||||
|
||||
Reference in New Issue
Block a user