Merge branch 'master' of github.com:jedmccaleb/NewCoin

This commit is contained in:
JoelKatz
2012-08-29 14:40:00 -07:00
7 changed files with 287 additions and 203 deletions

View File

@@ -534,6 +534,7 @@ void LedgerConsensus::updateOurPositions()
}
std::map<uint32, int> closeTimes;
BOOST_FOREACH(u160_prop_pair& it, mPeerPositions)
++closeTimes[it.second->getCloseTime() - (it.second->getCloseTime() % mCloseResolution)];
@@ -803,7 +804,7 @@ void LedgerConsensus::applyTransaction(TransactionEngine& engine, const Serializ
try
{
#endif
TransactionEngineResult result = engine.applyTransaction(*txn, parms);
TER result = engine.applyTransaction(*txn, parms);
if (result > 0)
{
Log(lsINFO) << " retry";
@@ -865,7 +866,7 @@ void LedgerConsensus::applyTransactions(const SHAMap::pointer& set, const Ledger
{
try
{
TransactionEngineResult result = engine.applyTransaction(*it->second, parms);
TER result = engine.applyTransaction(*it->second, parms);
if (result <= 0)
{
if (result == 0) ++successes;