Make it actually compile.

This commit is contained in:
JoelKatz
2013-04-17 23:28:09 -07:00
parent 7575ef882a
commit 60f62c3a79

View File

@@ -257,15 +257,15 @@ ValidationCollection::getCurrentValidations(uint256 currentLedger, uint256 prior
else
{ // contains a live record
bool countPreferred = valCurrentLedger && (it->second->getLedgerHash() == currentLedger);
if (!countPrefferred && // allow up to one ledger slip in either direction
if (!countPreferred && // allow up to one ledger slip in either direction
((valCurrentLedger && it->second->isPreviousHash(currentLedger)) ||
(valPriorLedger && (it->second->getLedgerHash() == priorLedger))
(valPriorLedger && (it->second->getLedgerHash() == priorLedger))))
{
countPreffered = true;
countPreferred = true;
cLog(lsDEBUG) << "Counting for " << currentLedger << " not " << it->second->getLedgerHash();
}
currentValidationCount& p = countPreferred ? ret[currentLedger] : ret[it->second->getLedgerHash()];
currentValidationCount& p = countPreferred ? ret[currentLedger] : ret[it->second->getLedgerHash()];
++(p.first);
uint160 ni = it->second->getNodeID();
if (ni > p.second)