From d64eb65b6684b0d26b7e8ee1bac46055a81a52a5 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 26 Apr 2012 19:11:26 -0700 Subject: [PATCH] Cleanup. --- src/Ledger.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ledger.cpp b/src/Ledger.cpp index bb71e1a45a..e6c174d5f2 100644 --- a/src/Ledger.cpp +++ b/src/Ledger.cpp @@ -27,6 +27,7 @@ Ledger::Ledger(const NewcoinAddress& masterID, uint64 startAmount) : mFeeHeld(0) startAccount->peekSLE().setIFieldU32(sfSequence, 1); writeBack(lepCREATE, startAccount->getSLE()); #ifdef DEBUG + std::cerr << "Root account:"; startAccount->dump(); #endif } @@ -116,14 +117,14 @@ void Ledger::addRaw(Serializer &s) AccountState::pointer Ledger::getAccountState(const NewcoinAddress& accountID) { #ifdef DEBUG - std::cerr << "Ledger:getAccountState(" << accountID.humanAccountID() << ")" << std::endl; +// std::cerr << "Ledger:getAccountState(" << accountID.humanAccountID() << ")" << std::endl; #endif ScopedLock l(mTransactionMap->Lock()); SHAMapItem::pointer item = mAccountStateMap->peekItem(Ledger::getAccountRootIndex(accountID)); if (!item) { #ifdef DEBUG - std::cerr << " notfound" << std::endl; +// std::cerr << " notfound" << std::endl; #endif return AccountState::pointer(); }