Do not allow native amounts for TrustSet.

This commit is contained in:
Arthur Britto
2013-02-25 22:31:11 -08:00
parent 167d13cf40
commit a0c709d126

View File

@@ -43,6 +43,14 @@ TER TrustSetTransactor::doApply()
return tefNO_AUTH_REQUIRED;
}
if (saLimitAmount.isNative())
{
cLog(lsINFO) << boost::str(boost::format("doTrustSet: Malformed transaction: Native credit limit: %s")
% saLimitAmount.getFullText());
return temBAD_LIMIT;
}
if (saLimitAmount.isNegative())
{
cLog(lsINFO) << "doTrustSet: Malformed transaction: Negatived credit limit.";