summary refs log tree commit diff
path: root/synapse/federation/units.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-10-14 16:44:27 +0100
committerMark Haines <mark.haines@matrix.org>2014-10-14 16:44:27 +0100
commit9aed791fc38790eae6c24e154e7f82ac8509295d (patch)
tree7a819420e36ad06df40b00023827f8021c1f18af /synapse/federation/units.py
parentremove debugging logging for signing requests (diff)
downloadsynapse-9aed791fc38790eae6c24e154e7f82ac8509295d.tar.xz
SYN-103: Ignore the 'origin' key in received EDUs. Instead take the origin from the transaction itself
Diffstat (limited to 'synapse/federation/units.py')
-rw-r--r--synapse/federation/units.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/synapse/federation/units.py b/synapse/federation/units.py
index ecca35ac43..d97aeb698e 100644
--- a/synapse/federation/units.py
+++ b/synapse/federation/units.py
@@ -156,11 +156,15 @@ class Edu(JsonEncodedObject):
     ]
 
     required_keys = [
-        "origin",
-        "destination",
         "edu_type",
     ]
 
+#    TODO: SYN-103: Remove "origin" and "destination" keys.
+#    internal_keys = [
+#        "origin",
+#        "destination",
+#    ]
+
 
 class Transaction(JsonEncodedObject):
     """ A transaction is a list of Pdus and Edus to be sent to a remote home