mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
.
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -29,7 +29,7 @@ private:
|
||||
|
||||
public:
|
||||
AccountState(const NewcoinAddress& naAccountID); // For new accounts
|
||||
AccountState(const SerializedLedgerEntry::pointer& ledgerEntry); // For accounts in a ledger
|
||||
AccountState(const SerializedLedgerEntry::pointer& ledgerEntry,const NewcoinAddress& naAccountI); // For accounts in a ledger
|
||||
|
||||
bool bHaveAuthorizedKey()
|
||||
{
|
||||
|
||||
@@ -178,7 +178,7 @@ AccountState::pointer Ledger::getAccountState(const NewcoinAddress& accountID)
|
||||
SerializedLedgerEntry::pointer sle =
|
||||
boost::make_shared<SerializedLedgerEntry>(item->peekSerializer(), item->getTag());
|
||||
if (sle->getType() != ltACCOUNT_ROOT) return AccountState::pointer();
|
||||
return boost::make_shared<AccountState>(sle);
|
||||
return boost::make_shared<AccountState>(sle,accountID);
|
||||
}
|
||||
|
||||
NicknameState::pointer Ledger::getNicknameState(const uint256& uNickname)
|
||||
|
||||
@@ -169,7 +169,7 @@ bool parseQuality(const std::string& strSource, uint32& uQuality)
|
||||
float fQuality = lexical_cast_s<float>(strSource);
|
||||
|
||||
if (fQuality)
|
||||
uQuality = QUALITY_ONE*fQuality;
|
||||
uQuality = (uint32)(QUALITY_ONE*fQuality);
|
||||
}
|
||||
|
||||
return !!uQuality;
|
||||
|
||||
Reference in New Issue
Block a user