This commit is contained in:
jed
2012-08-20 17:01:53 -07:00
parent 62eff7ecf4
commit 6694372af7
4 changed files with 6 additions and 6 deletions

View File

@@ -20,8 +20,8 @@ AccountState::AccountState(const NewcoinAddress& naAccountID) : mAccountID(naAcc
mValid = true;
}
AccountState::AccountState(const SerializedLedgerEntry::pointer& ledgerEntry) :
mLedgerEntry(ledgerEntry), mValid(false)
AccountState::AccountState(const SerializedLedgerEntry::pointer& ledgerEntry,const NewcoinAddress& naAccountID) :
mLedgerEntry(ledgerEntry), mValid(false), mAccountID(naAccountID)
{
if (!mLedgerEntry) return;
if (mLedgerEntry->getType() != ltACCOUNT_ROOT) return;
@@ -44,7 +44,7 @@ void AccountState::addJson(Json::Value& val)
if (mValid)
{
val["AccountID"] = mAccountID.humanAccountID();
val["Account"] = mAccountID.humanAccountID();
if (mLedgerEntry->getIFieldPresent(sfEmailHash))
val["UrlGravatar"] = createGravatarUrl(mLedgerEntry->getIFieldH128(sfEmailHash));