| 95 | } |
| 96 | |
| 97 | static void AddrManGetAddr(benchmark::Bench& bench) |
| 98 | { |
| 99 | AddrMan addrman{EMPTY_ASMAP, /*deterministic=*/false, ADDRMAN_CONSISTENCY_CHECK_RATIO}; |
| 100 | |
| 101 | FillAddrMan(addrman); |
| 102 | |
| 103 | bench.run([&] { |
| 104 | const auto& addresses = addrman.GetAddr(/* max_addresses */ 2500, /* max_pct */ 23, /* network */ std::nullopt); |
| 105 | assert(addresses.size() > 0); |
| 106 | }); |
| 107 | } |
| 108 | |
| 109 | static void AddrManAddThenGood(benchmark::Bench& bench) |
| 110 | { |
nothing calls this directly
no test coverage detected