Add an assert to catch a mismatch in id/hash size tables.

This commit is contained in:
JoelKatz
2013-03-09 11:13:18 -08:00
parent e7fb4edf36
commit cd8721fbdc

View File

@@ -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());