pub(crate) fn sync_child_storage_root(&mut self, storage_key: &[u8], root: Option<Vec<u8>>) {
		let entry = self.prospective.top.entry(storage_key.to_vec()).or_default();
		entry.value = root;

		if let Some((Some(extrinsics), _)) = self.prospective.children.get(storage_key) {
			for extrinsic in extrinsics {
				entry.extrinsics.get_or_insert_with(Default::default)
					.insert(*extrinsic);
			}
		}
	}
/// Sync the child storage root.
Sync the child storage root.
Sync the child storage root .
pub(crate) fn sync_child_storage_root(&mut self, storage_key: &[u8], root: Option<Vec<u8>>) {
		let entry = self.prospective.top.entry(storage_key.to_vec()).or_default();
		entry.value = root;
		if let Some((Some(extrinsics), _)) = self.prospective.children.get(storage_key) {
			for extrinsic in extrinsics {
				entry.extrinsics.get_or_insert_with(Default::default)
					.insert(*extrinsic);
			}
		}
	}
pub ( crate ) fn sync_child_storage_root ( & mut self , storage_key : & [ u8 ] , root : Option < Vec < u8 > > ) { let entry = self . prospective . top . entry ( storage_key . to_vec ( ) ) . or_default ( ) ; entry . value = root ; if let Some ( ( Some ( extrinsics ) , _ ) ) = self . prospective . children . get ( storage_key ) { for extrinsic in extrinsics { entry . extrinsics . get_or_insert_with ( Default :: default ) . insert ( * extrinsic ) ; } } }
Sync the child storage root.
Sync the child storage root .
&mut self
storage_key
&[u8]
root
Option<Vec<u8>>
&mut self
storage_key
&[u8]
root
Option<Vec<u8>>