summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-05-01 18:16:57 +0100
committerRichard van der Hoff <richard@matrix.org>2018-05-01 18:16:57 +0100
commitca7211104e0f6d08ea4f25de7b6e42e3839045d3 (patch)
tree212caa7daf269b4592ea3a35d5caf5ff2d42252e /synapse/api/constants.py
parentFixes #3135 - Replace _OpenSSLECCurve with crypto.get_elliptic_curve (#3157) (diff)
parentMerge commit '33f469b' into release-v0.28.1 (diff)
downloadsynapse-ca7211104e0f6d08ea4f25de7b6e42e3839045d3.tar.xz
Merge branch 'release-v0.28.1' into develop
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index 489efb7f86..5baba43966 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -16,6 +16,9 @@
 
 """Contains constants from the specification."""
 
+# the "depth" field on events is limited to 2**63 - 1
+MAX_DEPTH = 2**63 - 1
+
 
 class Membership(object):