Skip to content
Unverified Commit a77940ba 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 8bea091e
Pipeline #505833 waiting for manual action with stages
in 53 minutes and 51 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment