Temporary fix to some issues caused by transaction flattening.

Will work out details with Arthur.
This commit is contained in:
JoelKatz
2012-09-30 22:42:06 -07:00
parent 11d092b98e
commit 5cc421bc76
5 changed files with 18 additions and 12 deletions

View File

@@ -30,7 +30,11 @@ SerializedLedgerEntry::SerializedLedgerEntry(const Serializer& s, const uint256&
throw std::runtime_error("invalid ledger entry type");
mType = mFormat->t_type;
if (!setType(mFormat->elements))
{
Log(lsWARNING) << "Ledger entry not valid for type " << mFormat->t_name;
Log(lsWARNING) << getJson(0);
throw std::runtime_error("ledger entry not valid for type");
}
}
SerializedLedgerEntry::SerializedLedgerEntry(LedgerEntryType type) : STObject(sfLedgerEntry), mType(type)