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
There is a bunch of consensus types derived from UInt64 like SlotNumber, EpochNumber, ShardNumber, etc. Variables of these types could get underflowed or overflowed during various calculations. It would be nice to catch these cases all over the code in tests.
To Do
Implement a flag that would enable assertion that no underflows/overflows happens in UInt64 variables and its derivatives. Set this flag to false by default and enabled it only when JUnit tests takes the scene.
The text was updated successfully, but these errors were encountered:
Background
There is a bunch of consensus types derived from
UInt64
likeSlotNumber
,EpochNumber
,ShardNumber
, etc. Variables of these types could get underflowed or overflowed during various calculations. It would be nice to catch these cases all over the code in tests.To Do
Implement a flag that would enable assertion that no underflows/overflows happens in
UInt64
variables and its derivatives. Set this flag tofalse
by default and enabled it only when JUnit tests takes the scene.The text was updated successfully, but these errors were encountered: