diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-08-21 11:22:21 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-09-07 11:05:16 +0200 |
commit | fade9a1a4db71241ccad03fdacfb626453952963 (patch) | |
tree | 08c9e5b360cd324eac820a7600cfc39707be9ec2 /src/test/fuzz | |
parent | fa7f77b7d1709bf35808fced0d67b6e97b784d63 (diff) |
Remove confusing CAddrDB
The class only stores the file path, reading it from a global. Globals
are confusing and make testing harder.
The method reading from a stream does not even use any class members, so
putting it in a class is also confusing.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/data_stream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/data_stream.cpp b/src/test/fuzz/data_stream.cpp index 9c1022047e..08e9c91ba3 100644 --- a/src/test/fuzz/data_stream.cpp +++ b/src/test/fuzz/data_stream.cpp @@ -23,5 +23,5 @@ FUZZ_TARGET_INIT(data_stream_addr_man, initialize_data_stream_addr_man) FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()}; CDataStream data_stream = ConsumeDataStream(fuzzed_data_provider); CAddrMan addr_man(/* asmap */ std::vector<bool>(), /* deterministic */ false, /* consistency_check_ratio */ 0); - CAddrDB::Read(addr_man, data_stream); + ReadFromStream(addr_man, data_stream); } |