summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-10-17 19:41:32 +0100
committerMark Haines <mark.haines@matrix.org>2014-10-17 19:41:32 +0100
commit8afbece68319728e20c3b32c2f949fd1745d405e (patch)
tree126cc7e364332990399e928381cf0b2b9dbdd124 /synapse/federation
parentMerge branch 'develop' into event_signing (diff)
downloadsynapse-8afbece68319728e20c3b32c2f949fd1745d405e.tar.xz
Remove signatures from pdu when computing hashes to use for prev pdus, make sure is_state is a boolean.
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/units.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/units.py b/synapse/federation/units.py
index b81e162512..b779d259bd 100644
--- a/synapse/federation/units.py
+++ b/synapse/federation/units.py
@@ -101,7 +101,7 @@ class Pdu(JsonEncodedObject):
 
         super(Pdu, self).__init__(
             destinations=destinations,
-            is_state=is_state,
+            is_state=bool(is_state),
             prev_pdus=prev_pdus,
             outlier=outlier,
             hashes=hashes,