Fix tie-break order

This commit is contained in:
Eric Eastwood
2026-05-01 14:33:50 -05:00
parent 7554d5663e
commit c39af7e716
+3 -1
View File
@@ -287,7 +287,9 @@ class FederationHandler:
# as they're more likely to reveal history that we can return (something
# absolutely in the past is better than something can potentially extend
# into the past).
1 if current_depth >= e.depth else 0,
#
# This sorts ascending so 0 sorts before 1
0 if current_depth >= e.depth else 1,
),
)