From 8552287a792efcfdf44882731d55375a76f69765 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 18 Sep 2020 13:35:20 +0100 Subject: [PATCH] Don't check the local database when backfilling events --- synapse/federation/federation_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index d42930d1b94b..8d33436c0135 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -219,7 +219,7 @@ async def backfill( # Check signatures and hash of pdus, removing any from the list that fail checks pdus[:] = await self._check_sigs_and_hash_and_fetch( - dest, pdus, outlier=True, room_version=room_version + dest, pdus, outlier=True, room_version=room_version, check_db=False ) return pdus @@ -348,6 +348,7 @@ async def _check_sigs_and_hash_and_fetch( room_version: RoomVersion, outlier: bool = False, include_none: bool = False, + check_db: bool = True, ) -> List[EventBase]: """Takes a list of PDUs and checks the signatures and hashes of each one. If a PDU fails its signature check then we check if we have it in