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
fix(testing): forbid non-integral float timestamps in slot-clock vectors (leanEthereum#1055)
The slot-clock operation union serializes its wall-clock timing inputs
verbatim into the fixture JSON. The fields were typed float, so a
fractional, non-exactly-representable timestamp could be authored and
emitted. Such a value is a portability hazard: its decimal text can
round-trip to a different binary value across JSON parsers and languages,
breaking cross-client determinism.
Add a Pydantic after-validator that rejects any timing input whose
fractional part is non-zero (or is non-finite). Every authored value is a
whole second or whole millisecond, so this changes no emitted vector; it
only forbids future authors from introducing a fractional timestamp.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments