Accept ledgers more efficiently by avoiding allocate/allocate/copy/copy/free cycles.

This commit is contained in:
JoelKatz
2013-05-14 11:49:33 -07:00
parent baf2841873
commit 6a84a95979
4 changed files with 23 additions and 22 deletions

View File

@@ -1439,8 +1439,8 @@ void NetworkOPs::pubLedger(Ledger::ref accepted)
{
BOOST_FOREACH(const AcceptedLedger::value_type& vt, alpAccepted->getMap())
{
cLog(lsTRACE) << "pubAccepted: " << vt.second.getJson();
pubValidatedTransaction(lpAccepted, vt.second);
cLog(lsTRACE) << "pubAccepted: " << vt.second->getJson();
pubValidatedTransaction(lpAccepted, *vt.second);
}
}
}