mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
Remove a broken fix.
This commit is contained in:
@@ -11,32 +11,24 @@ AccountItem::pointer RippleState::makeItem(const uint160& accountID, SerializedL
|
|||||||
}
|
}
|
||||||
|
|
||||||
RippleState::RippleState(SerializedLedgerEntry::ref ledgerEntry) : AccountItem(ledgerEntry),
|
RippleState::RippleState(SerializedLedgerEntry::ref ledgerEntry) : AccountItem(ledgerEntry),
|
||||||
mValid(false), mViewLowest(true)
|
mValid(false),
|
||||||
|
mViewLowest(true)
|
||||||
{
|
{
|
||||||
for (int i = 0, iMax = mLedgerEntry->getCount(); i < iMax; ++i)
|
mFlags = mLedgerEntry->getFieldU32(sfFlags);
|
||||||
{
|
|
||||||
const SerializedType* entry = mLedgerEntry->peekAtPIndex(i);
|
mLowLimit = mLedgerEntry->getFieldAmount(sfLowLimit);
|
||||||
assert(entry);
|
mHighLimit = mLedgerEntry->getFieldAmount(sfHighLimit);
|
||||||
|
|
||||||
if (entry->getFName() == sfFlags)
|
|
||||||
mFlags = static_cast<const STUInt32*>(entry)->getValue();
|
|
||||||
else if (entry->getFName() == sfLowLimit)
|
|
||||||
{
|
|
||||||
mLowLimit = *static_cast<const STAmount*>(entry);
|
|
||||||
mLowID = RippleAddress::createAccountID(mLowLimit.getIssuer());
|
mLowID = RippleAddress::createAccountID(mLowLimit.getIssuer());
|
||||||
}
|
|
||||||
else if (entry->getFName() == sfHighLimit)
|
|
||||||
{
|
|
||||||
mHighLimit = *static_cast<const STAmount*>(entry);
|
|
||||||
mHighID = RippleAddress::createAccountID(mHighLimit.getIssuer());
|
mHighID = RippleAddress::createAccountID(mHighLimit.getIssuer());
|
||||||
}
|
|
||||||
else if (entry->getFName() == sfLowQualityIn)
|
mLowQualityIn = mLedgerEntry->getFieldU32(sfLowQualityIn);
|
||||||
mLowQualityIn = static_cast<const STUInt32*>(entry)->getValue();
|
mLowQualityOut = mLedgerEntry->getFieldU32(sfLowQualityOut);
|
||||||
else if (entry->getFName() == sfHighQualityIn)
|
|
||||||
mHighQualityIn = static_cast<const STUInt32*>(entry)->getValue();
|
mHighQualityIn = mLedgerEntry->getFieldU32(sfHighQualityIn);
|
||||||
else if (entry->getFName() == sfBalance)
|
mHighQualityOut = mLedgerEntry->getFieldU32(sfHighQualityOut);
|
||||||
mBalance = *static_cast<const STAmount*>(entry);
|
|
||||||
}
|
mBalance = mLedgerEntry->getFieldAmount(sfBalance);
|
||||||
|
|
||||||
mValid = true;
|
mValid = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user