mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 00:17:56 +00:00
feat: generalize some functions in sp-trie (#12376)
* feat: add to_memory_db to StorageProof * feat: add iter method and generalize iter_nodes * fmt * feat: generalize `encode_compact` like `decode_compact`, add to_compact_proof to StorageProof * fix to_compact_proof * improve by suggestions * improve by suggestions Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -980,7 +980,7 @@ pub mod tests {
|
||||
let proof = backend.extract_proof().unwrap();
|
||||
|
||||
let mut nodes = Vec::new();
|
||||
for node in proof.iter_nodes() {
|
||||
for node in proof.into_iter_nodes() {
|
||||
let hash = BlakeTwo256::hash(&node);
|
||||
// Only insert the node/value that contains the important data.
|
||||
if hash != value_hash {
|
||||
|
||||
Reference in New Issue
Block a user