accept stupid events over backfill

This commit is contained in:
Richard van der Hoff 2018-04-20 11:41:03 +01:00
parent 1f4b498b73
commit 3de7d9fe99
1 changed files with 9 additions and 4 deletions

View File

@ -563,10 +563,15 @@ class FederationHandler(BaseHandler):
extremities=extremities, extremities=extremities,
) )
# do some sanity-checking of the received events, before we go and # ideally we'd sanity check the events here for excess prev_events etc,
# do state resolution across 1000 events. # but it's hard to reject events at this point without completely
for ev in events: # breaking backfill in the same way that it is currently broken by
self._sanity_check_event(ev) # events whose signature we cannot verify (#3121).
#
# So for now we accept the events anyway. #3124 tracks this.
#
# for ev in events:
# self._sanity_check_event(ev)
# Don't bother processing events we already have. # Don't bother processing events we already have.
seen_events = yield self.store.have_events_in_timeline( seen_events = yield self.store.have_events_in_timeline(