WS: Do not announce unvalidated ledgers.

This commit is contained in:
Arthur Britto
2012-10-17 13:25:34 -07:00
parent 56a7e48cd9
commit 851768848b
2 changed files with 11 additions and 4 deletions

View File

@@ -935,6 +935,10 @@ void NetworkOPs::pubAccountInfo(const NewcoinAddress& naAccountID, const Json::V
void NetworkOPs::pubLedger(Ledger::ref lpAccepted)
{
// Don't publish to clients ledgers we don't trust.
if (NetworkOPs::omDISCONNECTED == getOperatingMode())
return;
{
boost::interprocess::sharable_lock<boost::interprocess::interprocess_upgradable_mutex> sl(mMonitorLock);