Function client::member::moved
zaun_community_protocol::client::member::moved · Function
pub fn moved(community_id: &CommunityId, event: &DescriptorUpdated, chain: &[SignedRootRotation], accepted: &AcceptedState, current_host: HostId, now_ms: u64) -> Result<Option<Moved>, ValidityError>Checks a community.descriptor_updated event against the client’s stored state and says whether the
community moved to another host. chain is the rotation chain the client holds; a
rotation embedded in the new descriptor extends it, as at the host.
Ok(None): valid, and still delegated to current_host (a descriptor edit).
Errors
Section titled “Errors”ValidityError for a pair that is not valid, or older than accepted. A descriptor
without a delegation (suspension) is ValidityError::NoDelegation.