From e47af5365ff6e8eb6d69679e7e1f8395c7ecd9aa Mon Sep 17 00:00:00 2001 From: Longarithm Date: Wed, 18 Sep 2024 00:44:38 +0400 Subject: [PATCH] cmt --- core/store/src/trie/mem/updating.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/store/src/trie/mem/updating.rs b/core/store/src/trie/mem/updating.rs index 914cf88e61b..b3fd10c20f9 100644 --- a/core/store/src/trie/mem/updating.rs +++ b/core/store/src/trie/mem/updating.rs @@ -695,8 +695,9 @@ impl<'a> MemTrieUpdate<'a> { } /// For each node in `ordered_nodes`, computes its hash and serialized data. - /// The `ordered_nodes` is expected to come from `post_order_traverse_updated_nodes`, - /// and updated_nodes are indexed by the node IDs in `ordered_nodes`. + /// `ordered_nodes` is expected to follow the post-order traversal of the + /// updated nodes. + /// `updated_nodes` must be indexed by the node IDs in `ordered_nodes`. pub(crate) fn compute_hashes_and_serialized_nodes( &self, ordered_nodes: &Vec,