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
ExecutionBlockProof::merkle_root_from_branch contains an assertion statement outside of a test block: assert_eq!(branch.len(), depth, "proof length should equal depth");. This assertion encodes an invariant which should not occur during runtime based on the inputs to the call. However, the relay will panic if this property should ever be broken.
It would be preferable to return an error, providing the same guarantees that the function will not verify invalid data but will not crash the program.
The text was updated successfully, but these errors were encountered:
@olga24912 this is actually a bug. If the specific part of the code is intended to be used only in tests, it should have been protected with an appropriate feature flag.
ExecutionBlockProof::merkle_root_from_branch
contains an assertion statement outside of a test block:assert_eq!(branch.len(), depth, "proof length should equal depth");
. This assertion encodes an invariant which should not occur during runtime based on the inputs to the call. However, the relay will panic if this property should ever be broken.It would be preferable to return an error, providing the same guarantees that the function will not verify invalid data but will not crash the program.
The text was updated successfully, but these errors were encountered: