Don't assert on a bad format transaction.

This commit is contained in:
JoelKatz
2013-06-11 23:12:15 -07:00
parent ca958e7de7
commit 74da659882

View File

@@ -53,7 +53,7 @@ SerializedTransaction::SerializedTransaction(SerializerIterator& sit) : STObject
} }
if (!setType(mFormat->elements)) if (!setType(mFormat->elements))
{ {
assert(false); WriteLog (lsWARNING, SerializedTransaction) << "Transaction not legal for format";
throw std::runtime_error("transaction not valid"); throw std::runtime_error("transaction not valid");
} }
} }