summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-05-01 18:52:44 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-05-01 18:52:44 +0100
commit40d1bbd257567740b9b8d08caeed4d3dae2a6aa4 (patch)
treed42e105d71b2173ee58d85e43ca4d83431188adc /synapse/api/constants.py
parentUpdate CHANGES.rst (diff)
parentchangelog for 0.28.1 (diff)
downloadsynapse-40d1bbd257567740b9b8d08caeed4d3dae2a6aa4.tar.xz
fix conflict in changelog from previous release
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):