mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Extra debug.
This commit is contained in:
@@ -22,8 +22,17 @@ AccountState::AccountState(SerializedLedgerEntry::pointer ledgerEntry) : mLedger
|
||||
{
|
||||
if (!mLedgerEntry) return;
|
||||
if (mLedgerEntry->getType() != ltACCOUNT_ROOT) return;
|
||||
mAccountID = mLedgerEntry->getValueFieldAccount(sfAccount);
|
||||
if (mAccountID.isValid()) mValid = true;
|
||||
mAccountID = mLedgerEntry->getIValueFieldAccount(sfAccount);
|
||||
if (mAccountID.isValid())
|
||||
mValid = true;
|
||||
#ifdef DEBUG
|
||||
if (!mValid) std::cerr << "AccountState not valid" << std::endl;
|
||||
else
|
||||
{
|
||||
std::cerr << "AccountState: " << std::endl << " ";
|
||||
dump();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void AccountState::addJson(Json::Value& val)
|
||||
|
||||
Reference in New Issue
Block a user