Skip to content

Commit c4dc81f

Browse files
committed
test: Remove dead code from interface_zmq
1 parent 33adc75 commit c4dc81f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/functional/interface_zmq.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,8 @@ def test_mempool_sync(self):
489489
mempool_snapshot = self.nodes[0].getrawmempool(mempool_sequence=True)
490490
mempool_view = set(mempool_snapshot["txids"])
491491
get_raw_seq = mempool_snapshot["mempool_sequence"]
492-
assert_equal(get_raw_seq, 6)
493-
# Snapshot may be too old compared to zmq message we read off latest
494-
while zmq_mem_seq >= get_raw_seq:
495-
sleep(2)
496-
mempool_snapshot = self.nodes[0].getrawmempool(mempool_sequence=True)
497-
mempool_view = set(mempool_snapshot["txids"])
498-
get_raw_seq = mempool_snapshot["mempool_sequence"]
492+
assert_equal(get_raw_seq, num_txs + 1)
493+
assert zmq_mem_seq < get_raw_seq
499494

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

0 commit comments

Comments
 (0)