| catapult::observers::DEFINE_OBSERVER (ChildNamespace, model::ChildNamespaceNotification, [](const auto ¬ification, const ObserverContext &context) { auto &cache=context.Cache.sub< cache::NamespaceCache >();if(NotifyMode::Rollback==context.Mode) { cache.remove(notification.NamespaceId);return;} auto namespaceIter=cache.find(notification.ParentId);const auto &parentEntry=namespaceIter.get();auto childPath=parentEntry.ns().path();childPath.push_back(notification.NamespaceId);cache.insert(state::Namespace(childPath));}) |