mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Bugfixes.
This commit is contained in:
@@ -55,6 +55,14 @@ std::string SerializedLedgerEntry::getText() const
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Json::Value SerializedLedgerEntry::getJson(int options) const
|
||||||
|
{
|
||||||
|
Json::Value ret(mObject.getJson(options));
|
||||||
|
ret["Index"] = mIndex.GetHex();
|
||||||
|
ret["Version"] = mVersion.getText();
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
bool SerializedLedgerEntry::isEquivalent(const SerializedType& t) const
|
bool SerializedLedgerEntry::isEquivalent(const SerializedType& t) const
|
||||||
{ // locators are not compared
|
{ // locators are not compared
|
||||||
const SerializedLedgerEntry* v = dynamic_cast<const SerializedLedgerEntry*>(&t);
|
const SerializedLedgerEntry* v = dynamic_cast<const SerializedLedgerEntry*>(&t);
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ public:
|
|||||||
SerializedLedgerEntry* duplicate() const { return new SerializedLedgerEntry(*this); }
|
SerializedLedgerEntry* duplicate() const { return new SerializedLedgerEntry(*this); }
|
||||||
std::string getFullText() const;
|
std::string getFullText() const;
|
||||||
std::string getText() const;
|
std::string getText() const;
|
||||||
|
Json::Value getJson(int options) const;
|
||||||
void add(Serializer& s) const { mVersion.add(s); mObject.add(s); }
|
void add(Serializer& s) const { mVersion.add(s); mObject.add(s); }
|
||||||
virtual bool isEquivalent(const SerializedType& t) const;
|
virtual bool isEquivalent(const SerializedType& t) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user