Bugfixes.

This commit is contained in:
JoelKatz
2012-04-26 17:31:09 -07:00
parent 80efbfb6ee
commit a3669388b9
2 changed files with 9 additions and 0 deletions

View File

@@ -55,6 +55,14 @@ std::string SerializedLedgerEntry::getText() const
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
{ // locators are not compared
const SerializedLedgerEntry* v = dynamic_cast<const SerializedLedgerEntry*>(&t);