Ensure key ownership proof is optimal (#4699)
Ensure that the key ownership proof doesn't contain duplicate or
unneeded nodes.
We already have these checks for the bridge messages proof. Just making
them more generic and performing them also for the key ownership proof.
---------
Co-authored-by:
Adrian Catangiu <adrian@parity.io>
parent
7c6ab071
Showing
- bridges/bin/runtime-common/src/messages.rs 5 additions, 2 deletionsbridges/bin/runtime-common/src/messages.rs
- bridges/primitives/runtime/src/storage_proof.rs 34 additions, 63 deletionsbridges/primitives/runtime/src/storage_proof.rs
- substrate/frame/session/src/historical/mod.rs 55 additions, 57 deletionssubstrate/frame/session/src/historical/mod.rs
- substrate/primitives/trie/src/accessed_nodes_tracker.rs 119 additions, 0 deletionssubstrate/primitives/trie/src/accessed_nodes_tracker.rs
- substrate/primitives/trie/src/lib.rs 50 additions, 1 deletionsubstrate/primitives/trie/src/lib.rs
- substrate/primitives/trie/src/recorder.rs 8 additions, 21 deletionssubstrate/primitives/trie/src/recorder.rs
- substrate/primitives/trie/src/recorder_ext.rs 47 additions, 0 deletionssubstrate/primitives/trie/src/recorder_ext.rs
- substrate/primitives/trie/src/storage_proof.rs 48 additions, 0 deletionssubstrate/primitives/trie/src/storage_proof.rs
Please register or sign in to comment