Skip to content

Commit 53bfca8

Browse files
committed
merge bitcoin#26143: wait for the expected basic block filter index in interface_rest
1 parent 624727f commit 53bfca8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/functional/interface_rest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,11 @@ def run_test(self):
288288

289289
# See if we can get 5 headers in one response
290290
self.generate(self.nodes[1], 5)
291+
expected_filter = {
292+
'txindex': {'synced': True, 'best_block_height': 208},
293+
'basic block filter index': {'synced': True, 'best_block_height': 208},
294+
}
295+
self.wait_until(lambda: self.nodes[0].getindexinfo() == expected_filter)
291296
json_obj = self.test_rest_request(f"/headers/{bb_hash}", query_params={"count": 5})
292297
assert_equal(len(json_obj), 5) # now we should have 5 header objects
293298
json_obj = self.test_rest_request(f"/blockfilterheaders/basic/{bb_hash}", query_params={"count": 5})

0 commit comments

Comments
 (0)