Fix txn signature breakage.

This commit is contained in:
JoelKatz
2012-09-29 00:05:54 -07:00
parent aa8401066e
commit 29a5b60154

View File

@@ -226,7 +226,7 @@ void STObject::add(Serializer& s, bool withSigningFields) const
if (it.getSType() != STI_NOTPRESENT)
{
SField::ref fName = it.getFName();
if (withSigningFields || (fName == sfSignature) || (fName == sfSignatures))
if (withSigningFields || ((fName != sfSignature) && (fName != sfSignatures)))
fields.insert(std::make_pair(it.getFName().fieldCode, &it));
}
}