First part of the fix to stop us from publishing ledgers that don't get validated.

This commit is contained in:
JoelKatz
2013-01-01 16:11:30 -08:00
parent 737d81e7b0
commit 1e24721a98
4 changed files with 43 additions and 5 deletions

View File

@@ -75,6 +75,8 @@ 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);
return isCurrent;
}