Comment on when auth chain and state are None

This commit is contained in:
Erik Johnston 2016-09-02 14:42:38 +01:00
parent 34e5e17f91
commit f7f1027d3d

View File

@ -101,6 +101,9 @@ class FederationHandler(BaseHandler):
def on_receive_pdu(self, origin, pdu, state=None, auth_chain=None):
""" Called by the ReplicationLayer when we have a new pdu. We need to
do auth checks and put it through the StateHandler.
auth_chain and state are None if we already have the necessary state
and prev_events in the db
"""
event = pdu