summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-09-30 16:41:48 +0100
committerErik Johnston <erik@matrix.org>2015-09-30 16:41:48 +0100
commit83892d0d3039965ae3075df166cbdbd7339cb0bc (patch)
treecf6841dba45c48e605eaa6a2ca17883cf7fa4957 /synapse/handlers/federation.py
parentRename var (diff)
downloadsynapse-83892d0d3039965ae3075df166cbdbd7339cb0bc.tar.xz
Comment
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 3ce1aee52c..17f4ddd325 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -1013,6 +1013,14 @@ class FederationHandler(BaseHandler):
 
     @defer.inlineCallbacks
     def _persist_auth_tree(self, auth_events, state, event):
+        """Checks the auth chain is valid (and passes auth checks) for the
+        state and event. Then persists the auth chain and state atomically.
+        Persists the event seperately.
+
+        Returns:
+            2-tuple of (event_stream_id, max_stream_id) from the persist_event
+            call for `event`
+        """
         events_to_context = {}
         for e in itertools.chain(auth_events, state):
             ctx = yield self.state_handler.compute_event_context(