Don't check PDU size in compute_reference_hash

This commit is contained in:
Erik Johnston
2026-05-27 12:52:45 +01:00
parent 1479a94ee7
commit 51ace0f588
-3
View File
@@ -68,9 +68,6 @@ pub fn compute_event_reference_hash(
let json =
crate::canonical_json::to_string_canonical(&redacted_value_mut, canonicalization_options)
.map_err(|err| anyhow::anyhow!(err))?;
if json.len() > MAX_PDU_SIZE_BYTES {
anyhow::bail!("Event larger than max PDU size.");
}
let hash = Sha256::digest(json.as_bytes());