pub fn check_genesis_storage(top: &StorageOverlay, children: &ChildrenStorageOverlay) -> error::Result<()> {
	if top.iter().any(|(k, _)| well_known_keys::is_child_storage_key(k)) {
		return Err(error::ErrorKind::GenesisInvalid.into());
	}

	if children.keys().any(|child_key| !well_known_keys::is_child_storage_key(&child_key)) {
		return Err(error::ErrorKind::GenesisInvalid.into());
	}

	Ok(())
}
/// Check that genesis storage is valid.
Check that genesis storage is valid.
Check that genesis storage is valid .
pub fn check_genesis_storage(top: &StorageOverlay, children: &ChildrenStorageOverlay) -> error::Result<()> {
	if top.iter().any(|(k, _)| well_known_keys::is_child_storage_key(k)) {
		return Err(error::ErrorKind::GenesisInvalid.into());
	}
	if children.keys().any(|child_key| !well_known_keys::is_child_storage_key(&child_key)) {
		return Err(error::ErrorKind::GenesisInvalid.into());
	}
	Ok(())
}
pub fn check_genesis_storage ( top : & StorageOverlay , children : & ChildrenStorageOverlay ) -> error :: Result < ( ) > { if top . iter ( ) . any ( | ( k , _ ) | well_known_keys :: is_child_storage_key ( k ) ) { return Err ( error :: ErrorKind :: GenesisInvalid . into ( ) ) ; } if children . keys ( ) . any ( | child_key | ! well_known_keys :: is_child_storage_key ( & child_key ) ) { return Err ( error :: ErrorKind :: GenesisInvalid . into ( ) ) ; } Ok ( ( ) ) }
Check that genesis storage is valid.
Check that genesis storage is valid .
top
&StorageOverlay
children
&ChildrenStorageOverlay
top
&StorageOverlay
children
&ChildrenStorageOverlay