aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/utxo_snapshot.cpp
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-06-06 17:22:59 +0200
committerMacroFake <falke.marco@gmail.com>2022-06-29 10:33:13 +0200
commitfacc2fa7b8a218a0df6a19772e1641ea68dda2e3 (patch)
treec2e5cf39dd2c0b88517a8bb2a83d7ca2bba2c360 /src/test/fuzz/utxo_snapshot.cpp
parent6666803c897e4ad27b45cb74e3a9aa74a335f1bf (diff)
downloadbitcoin-facc2fa7b8a218a0df6a19772e1641ea68dda2e3.tar.xz
Use AutoFile where possible
Diffstat (limited to 'src/test/fuzz/utxo_snapshot.cpp')
-rw-r--r--src/test/fuzz/utxo_snapshot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/fuzz/utxo_snapshot.cpp b/src/test/fuzz/utxo_snapshot.cpp
index 33496a457e..0b596492be 100644
--- a/src/test/fuzz/utxo_snapshot.cpp
+++ b/src/test/fuzz/utxo_snapshot.cpp
@@ -39,13 +39,13 @@ FUZZ_TARGET_INIT(utxo_snapshot, initialize_chain)
Assert(!chainman.SnapshotBlockhash());
{
- CAutoFile outfile{fsbridge::fopen(snapshot_path, "wb"), SER_DISK, CLIENT_VERSION};
+ AutoFile outfile{fsbridge::fopen(snapshot_path, "wb")};
const auto file_data{ConsumeRandomLengthByteVector(fuzzed_data_provider)};
outfile << Span{file_data};
}
const auto ActivateFuzzedSnapshot{[&] {
- CAutoFile infile{fsbridge::fopen(snapshot_path, "rb"), SER_DISK, CLIENT_VERSION};
+ AutoFile infile{fsbridge::fopen(snapshot_path, "rb")};
SnapshotMetadata metadata;
try {
infile >> metadata;