Skip to content
Unverified Commit ed15a71d authored by Tobi Demeco's avatar Tobi Demeco Committed by GitHub
Browse files

sp-trie: minor fix to avoid possible panic during node decoding (#6486)



# Description

This PR is a simple fix consisting of adding a check to the process of
decoding nodes of a storage proof to avoid panicking when receiving
badly-constructed proofs, returning an error instead.

This would close #6485

## Integration

No changes have to be done downstream, and as such the version bump
should be minor.

---------

Co-authored-by: default avatarBastian Köcher <[email protected]>
parent 39eba149
Pipeline #505765 waiting for manual action with stages
in 1 hour, 18 minutes, and 2 seconds