fn child_storage_root_transaction(&mut self, storage_key: &[u8]) -> (Vec<u8>, B::Transaction) {
		self.mark_dirty();

		let (root, is_default, transaction) = {
			let delta = self.overlay.committed.children.get(storage_key)
				.into_iter()
				.flat_map(|map| map.1.iter().map(|(k, v)| (k.clone(), v.clone())))
				.chain(self.overlay.prospective.children.get(storage_key)
						.into_iter()
						.flat_map(|map| map.1.iter().map(|(k, v)| (k.clone(), v.clone()))));

			self.backend.child_storage_root(storage_key, delta)
		};

		let root_val = if is_default {
			None
		} else {
			Some(root.clone())
		};
		self.overlay.sync_child_storage_root(storage_key, root_val);

		(root, transaction)
	}
/// Fetch child storage root together with its transaction.
Fetch child storage root together with its transaction.
Fetch child storage root together with its transaction .
fn child_storage_root_transaction(&mut self, storage_key: &[u8]) -> (Vec<u8>, B::Transaction) {
		self.mark_dirty();
		let (root, is_default, transaction) = {
			let delta = self.overlay.committed.children.get(storage_key)
				.into_iter()
				.flat_map(|map| map.1.iter().map(|(k, v)| (k.clone(), v.clone())))
				.chain(self.overlay.prospective.children.get(storage_key)
						.into_iter()
						.flat_map(|map| map.1.iter().map(|(k, v)| (k.clone(), v.clone()))));
			self.backend.child_storage_root(storage_key, delta)
		};
		let root_val = if is_default {
			None
		} else {
			Some(root.clone())
		};
		self.overlay.sync_child_storage_root(storage_key, root_val);
		(root, transaction)
	}
fn child_storage_root_transaction ( & mut self , storage_key : & [ u8 ] ) -> ( Vec < u8 > , B :: Transaction ) { self . mark_dirty ( ) ; let ( root , is_default , transaction ) = { let delta = self . overlay . committed . children . get ( storage_key ) . into_iter ( ) . flat_map ( | map | map . 1 . iter ( ) . map ( | ( k , v ) | ( k . clone ( ) , v . clone ( ) ) ) ) . chain ( self . overlay . prospective . children . get ( storage_key ) . into_iter ( ) . flat_map ( | map | map . 1 . iter ( ) . map ( | ( k , v ) | ( k . clone ( ) , v . clone ( ) ) ) ) ) ; self . backend . child_storage_root ( storage_key , delta ) } ; let root_val = if is_default { None } else { Some ( root . clone ( ) ) } ; self . overlay . sync_child_storage_root ( storage_key , root_val ) ; ( root , transaction ) }
Fetch child storage root together with its transaction.
Fetch child storage root together with its transaction .
&mut self
storage_key
&[u8]
&mut self
storage_key
&[u8]