mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 16:02:15 +01:00
Ask for any auth events that we don't have
This commit is contained in:
parent
4bd0ab76c6
commit
2bca242fdc
1 changed files with 15 additions and 0 deletions
|
@ -542,6 +542,21 @@ class ReplicationLayer(object):
|
|||
|
||||
state = None
|
||||
|
||||
# We need to make sure we have all the auth events.
|
||||
for e_id, _ in pdu.auth_events:
|
||||
exists = yield self._get_persisted_pdu(
|
||||
origin,
|
||||
e_id,
|
||||
do_auth=False
|
||||
)
|
||||
|
||||
if not exists:
|
||||
yield self.get_pdu(
|
||||
origin,
|
||||
event_id=e_id,
|
||||
)
|
||||
logger.debug("Processed pdu %s", e_id)
|
||||
|
||||
# Get missing pdus if necessary.
|
||||
if not pdu.outlier:
|
||||
# We only backfill backwards to the min depth.
|
||||
|
|
Loading…
Reference in a new issue