mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-08 05:05:51 +00:00
fixes unittests for windows
This commit is contained in:
@@ -715,7 +715,7 @@ private:
|
|||||||
return keys;
|
return keys;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unordered_map<id_t, reduce_relay::Slot<ManualClock>::PeerInfo>
|
std::unordered_map<Peer::id_t, reduce_relay::Slot<ManualClock>::PeerInfo>
|
||||||
getUntrustedSlotPeers(
|
getUntrustedSlotPeers(
|
||||||
PublicKey const& validator,
|
PublicKey const& validator,
|
||||||
reduce_relay::Slots<ManualClock> const& slots)
|
reduce_relay::Slots<ManualClock> const& slots)
|
||||||
@@ -724,8 +724,10 @@ private:
|
|||||||
if (it == slots.untrusted_slots_.end())
|
if (it == slots.untrusted_slots_.end())
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
auto r = std::
|
auto r = std::unordered_map<
|
||||||
unordered_map<id_t, reduce_relay::Slot<ManualClock>::PeerInfo>();
|
Peer::id_t,
|
||||||
|
reduce_relay::Slot<ManualClock>::PeerInfo>();
|
||||||
|
|
||||||
for (auto const& [id, info] : it->second.peers_)
|
for (auto const& [id, info] : it->second.peers_)
|
||||||
r.emplace(std::make_pair(id, info));
|
r.emplace(std::make_pair(id, info));
|
||||||
|
|
||||||
|
|||||||
@@ -253,7 +253,6 @@ public:
|
|||||||
// made the default routing algorithm //
|
// made the default routing algorithm //
|
||||||
std::size_t VP_REDUCE_RELAY_SQUELCH_MAX_SELECTED_PEERS = 5;
|
std::size_t VP_REDUCE_RELAY_SQUELCH_MAX_SELECTED_PEERS = 5;
|
||||||
///////////////// END OF TEMPORARY CODE BLOCK /////////////////////
|
///////////////// END OF TEMPORARY CODE BLOCK /////////////////////
|
||||||
// Reduce-relay - these parameters are experimental.
|
|
||||||
|
|
||||||
// Enable enhanced squelching of unique untrusted validator messages
|
// Enable enhanced squelching of unique untrusted validator messages
|
||||||
bool VP_REDUCE_RELAY_ENHANCED_SQUELCH_ENABLE = false;
|
bool VP_REDUCE_RELAY_ENHANCED_SQUELCH_ENABLE = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user