Fix for miscalculation of storage root (#2285)

This commit is contained in:
cheme authored and Gav Wood committed 2019-04-16 15:28:53 +08:00
1 parent 1aa6eb9fa8
commit 47c1b4b26e
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -297,7 +297,8 @@ where
}
let mut transaction = B::Transaction::default();
let child_storage_keys: Vec<_> = self.overlay.prospective.children.keys().cloned().collect();
let child_storage_keys: std::collections::BTreeSet<_> = self.overlay.prospective.children.keys().cloned()
.chain(self.overlay.committed.children.keys().cloned()).collect();
for key in child_storage_keys {
let (_, t) = self.child_storage_root_transaction(&key);