fixes unittests for windows

This commit is contained in:
Vito
2025-05-28 17:08:30 +02:00
parent 261cf0c74c
commit 2a9c38693a
2 changed files with 5 additions and 4 deletions

View File

@@ -715,7 +715,7 @@ private:
return keys;
}
std::unordered_map<id_t, reduce_relay::Slot<ManualClock>::PeerInfo>
std::unordered_map<Peer::id_t, reduce_relay::Slot<ManualClock>::PeerInfo>
getUntrustedSlotPeers(
PublicKey const& validator,
reduce_relay::Slots<ManualClock> const& slots)
@@ -724,8 +724,10 @@ private:
if (it == slots.untrusted_slots_.end())
return {};
auto r = std::
unordered_map<id_t, reduce_relay::Slot<ManualClock>::PeerInfo>();
auto r = std::unordered_map<
Peer::id_t,
reduce_relay::Slot<ManualClock>::PeerInfo>();
for (auto const& [id, info] : it->second.peers_)
r.emplace(std::make_pair(id, info));

View File

@@ -253,7 +253,6 @@ public:
// made the default routing algorithm //
std::size_t VP_REDUCE_RELAY_SQUELCH_MAX_SELECTED_PEERS = 5;
///////////////// END OF TEMPORARY CODE BLOCK /////////////////////
// Reduce-relay - these parameters are experimental.
// Enable enhanced squelching of unique untrusted validator messages
bool VP_REDUCE_RELAY_ENHANCED_SQUELCH_ENABLE = false;