Be more aggressive about avoiding publishing ledger holes. Make the logic simpler and more sensible.

This commit is contained in:
JoelKatz
2013-01-07 01:33:14 -08:00
parent 63fd3818fb
commit f493ea6478
3 changed files with 76 additions and 35 deletions

View File

@@ -76,7 +76,7 @@ bool ValidationCollection::addValidation(const SerializedValidation::pointer& va
cLog(lsINFO) << "Val for " << hash << " from " << signer.humanNodePublic()
<< " added " << (val->isTrusted() ? "trusted/" : "UNtrusted/") << (isCurrent ? "current" : "stale");
if (val->isTrusted())
theApp->getLedgerMaster().checkPublish(hash);
theApp->getLedgerMaster().checkAccept(hash);
return isCurrent;
}