summary refs log tree commit diff
path: root/synapse/federation/federation_base.py
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2023-07-11 14:35:34 -0400
committerPatrick Cloke <patrickc@matrix.org>2023-07-17 11:05:43 -0400
commitb38ba4a8b1d6816f195330df5b2188796fc4761d (patch)
tree12390ea61593e9a796cde7469de8458fc1103de7 /synapse/federation/federation_base.py
parentIgnore non-state events sent in state. (diff)
downloadsynapse-b38ba4a8b1d6816f195330df5b2188796fc4761d.tar.xz
Handle LPDU content hash.
Diffstat (limited to '')
-rw-r--r--synapse/federation/federation_base.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/federation/federation_base.py b/synapse/federation/federation_base.py
index a0c5048efc..21cb3e4675 100644
--- a/synapse/federation/federation_base.py
+++ b/synapse/federation/federation_base.py
@@ -20,7 +20,7 @@ from synapse.api.errors import Codes, SynapseError
 from synapse.api.room_versions import EventFormatVersions, RoomVersion
 from synapse.crypto.event_signing import check_event_content_hash
 from synapse.crypto.keyring import Keyring
-from synapse.events import EventBase, FrozenLinearizedEvent, make_event_from_dict
+from synapse.events import EventBase, make_event_from_dict
 from synapse.events.utils import prune_event, prune_event_dict, validate_canonicaljson
 from synapse.http.servlet import assert_params_in_dict
 from synapse.logging.opentracing import log_kv, trace
@@ -253,8 +253,6 @@ async def _check_sigs_on_pdu(
     # If this is a linearized PDU we may need to check signatures of the hub
     # and sender.
     if room_version.event_format == EventFormatVersions.LINEARIZED:
-        assert isinstance(pdu, FrozenLinearizedEvent)
-
         # If the event was sent via a hub server, check the signature of the
         # sender against the Linear PDU. (But only if the sender isn't the hub.)
         #