You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rippled does not seem to validate that AccountSet transactions use valid asf flags. We have logic in AccountSet to try to work around this by having a clearFlagRawValue and setFlagRawValue, and trying to normalize those values into clearFlag and setFlag. The normalization logic checks to see if the raw value is a valid AccountSetFlag by determining if it is less than or equal to the maximum AccountSetFlag value. If it is, it sets the typed field to the mapped value. If it is not, it leaves the typed field empty. This works in most cases, but if an AccountSet transaction gets validated with a ClearFlag or SetFlag value of 11, this logic does not work (11 is reserved for hooks). When the flag is 11, the normalization function incorrectly registers the value as a valid AccountSetFlag and calls AccountSetFlag.forValue() which then throws an exception.
The text was updated successfully, but these errors were encountered:
rippled does not seem to validate that
AccountSet
transactions use validasf
flags. We have logic inAccountSet
to try to work around this by having aclearFlagRawValue
andsetFlagRawValue
, and trying to normalize those values intoclearFlag
andsetFlag
. The normalization logic checks to see if the raw value is a valid AccountSetFlag by determining if it is less than or equal to the maximum AccountSetFlag value. If it is, it sets the typed field to the mapped value. If it is not, it leaves the typed field empty. This works in most cases, but if an AccountSet transaction gets validated with aClearFlag
orSetFlag
value of11
, this logic does not work (11
is reserved for hooks). When the flag is11
, the normalization function incorrectly registers the value as a validAccountSetFlag
and callsAccountSetFlag.forValue()
which then throws an exception.The text was updated successfully, but these errors were encountered: