mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Track fields not serialized for signing hashes in a more sensible way.
This commit is contained in:
@@ -283,13 +283,8 @@ void STObject::add(Serializer& s, bool withSigningFields) const
|
||||
|
||||
BOOST_FOREACH(const SerializedType& it, mData)
|
||||
{ // pick out the fields and sort them
|
||||
if ((it.getSType() != STI_NOTPRESENT) && it.getFName().isBinary())
|
||||
{
|
||||
SField::ref fName = it.getFName();
|
||||
if (withSigningFields ||
|
||||
((fName != sfTxnSignature) && (fName != sfTxnSignatures) && (fName != sfSignature)))
|
||||
if ((it.getSType() != STI_NOTPRESENT) && it.getFName().shouldInclude(withSigningFields))
|
||||
fields.insert(std::make_pair(it.getFName().fieldCode, &it));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user