mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cleanup.
This commit is contained in:
@@ -27,6 +27,7 @@ Ledger::Ledger(const NewcoinAddress& masterID, uint64 startAmount) : mFeeHeld(0)
|
|||||||
startAccount->peekSLE().setIFieldU32(sfSequence, 1);
|
startAccount->peekSLE().setIFieldU32(sfSequence, 1);
|
||||||
writeBack(lepCREATE, startAccount->getSLE());
|
writeBack(lepCREATE, startAccount->getSLE());
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
std::cerr << "Root account:";
|
||||||
startAccount->dump();
|
startAccount->dump();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -116,14 +117,14 @@ void Ledger::addRaw(Serializer &s)
|
|||||||
AccountState::pointer Ledger::getAccountState(const NewcoinAddress& accountID)
|
AccountState::pointer Ledger::getAccountState(const NewcoinAddress& accountID)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::cerr << "Ledger:getAccountState(" << accountID.humanAccountID() << ")" << std::endl;
|
// std::cerr << "Ledger:getAccountState(" << accountID.humanAccountID() << ")" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
ScopedLock l(mTransactionMap->Lock());
|
ScopedLock l(mTransactionMap->Lock());
|
||||||
SHAMapItem::pointer item = mAccountStateMap->peekItem(Ledger::getAccountRootIndex(accountID));
|
SHAMapItem::pointer item = mAccountStateMap->peekItem(Ledger::getAccountRootIndex(accountID));
|
||||||
if (!item)
|
if (!item)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::cerr << " notfound" << std::endl;
|
// std::cerr << " notfound" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
return AccountState::pointer();
|
return AccountState::pointer();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user