From 9607ea1543c627e11d9d611af32e18d5286b4caa Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 1 Jun 2012 16:32:34 -0700 Subject: [PATCH] Extra logging. --- src/LedgerConsensus.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/LedgerConsensus.cpp b/src/LedgerConsensus.cpp index f7199a886b..01e393750d 100644 --- a/src/LedgerConsensus.cpp +++ b/src/LedgerConsensus.cpp @@ -662,7 +662,11 @@ void LedgerConsensus::applyTransactions(SHAMap::pointer set, Ledger::pointer led void LedgerConsensus::accept(SHAMap::pointer set) { + assert(set->getHash() == mOurPosition->getCurrentHash()); Log(lsINFO) << "Computing new LCL based on network consensus"; + Log(lsDEBUG) << "Consensus " << mOurPosition->getCurrentHash().GetHex(); + Log(lsDEBUG) << "Previous LCL " << mPreviousLedger->getParentHash().GetHex(); + Ledger::pointer newLCL = boost::make_shared(mPreviousLedger); std::deque failedTransactions; @@ -687,7 +691,7 @@ void LedgerConsensus::accept(SHAMap::pointer set) newcoin::TMValidation val; val.set_validation(&validation[0], validation.size()); theApp->getConnectionPool().relayMessage(NULL, boost::make_shared(val, newcoin::mtVALIDATION)); - Log(lsINFO) << "Validation sent"; + Log(lsINFO) << "Validation sent " << newLCL->getHash().GetHex(); } void LedgerConsensus::endConsensus()