Function holochain_state::chain_lock::is_chain_locked[][src]

pub fn is_chain_locked(
    txn: &Transaction<'_>,
    lock: &[u8],
    author: &AgentPubKey
) -> StateMutationResult<bool>
Expand description

True if the chain is currently locked for the given lock id. The chain is never locked for the id that created it. The chain is always locked for all other ids until the lock end time is in the past.