Skip to content

Commit

Permalink
test: Remove dead code from interface_zmq
Browse files Browse the repository at this point in the history
  • Loading branch information
fjahr committed Sep 29, 2024
1 parent 33adc75 commit eb20d82
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/functional/interface_zmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,8 @@ def test_mempool_sync(self):
mempool_snapshot = self.nodes[0].getrawmempool(mempool_sequence=True)
mempool_view = set(mempool_snapshot["txids"])
get_raw_seq = mempool_snapshot["mempool_sequence"]
assert_equal(get_raw_seq, 6)
# Snapshot may be too old compared to zmq message we read off latest
while zmq_mem_seq >= get_raw_seq:
sleep(2)
mempool_snapshot = self.nodes[0].getrawmempool(mempool_sequence=True)
mempool_view = set(mempool_snapshot["txids"])
get_raw_seq = mempool_snapshot["mempool_sequence"]
assert_equal(get_raw_seq, num_tx + 1)
assert zmq_mem_seq < get_raw_seq

# Things continue to happen in the "interim" while waiting for snapshot results
# We have node 0 do all these to avoid p2p races with RBF announcements
Expand Down

0 comments on commit eb20d82

Please sign in to comment.