1
0

interface: _search_headers_backwards: add an assert

This commit is contained in:
SomberNight
2025-06-08 20:22:45 +00:00
parent b01e69cf45
commit af11ebb3c3

View File

@@ -1130,6 +1130,7 @@ class Interface(Logger):
while await iterate():
bad, bad_header = height, header
delta = self.tip - height
assert delta > 0, delta
height = self.tip - 2 * delta
_assert_header_does_not_check_against_any_chain(bad_header)