mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add an assert to catch a mismatch in id/hash size tables.
This commit is contained in:
@@ -528,6 +528,8 @@ int PeerSet::getPeerCount() const
|
||||
void LedgerAcquire::filterNodes(std::vector<SHAMapNode>& nodeIDs, std::vector<uint256>& nodeHashes,
|
||||
std::set<SHAMapNode>& recentNodes, int max, bool aggressive)
|
||||
{ // ask for new nodes in preference to ones we've already asked for
|
||||
assert(nodeIDs.size() == nodeHashes.size());
|
||||
|
||||
std::vector<bool> duplicates;
|
||||
duplicates.reserve(nodeIDs.size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user