Skip to content

Commit 2399a06

Browse files
committed
Add test case for mempool->block zmq notification
1 parent e70512a commit 2399a06

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/functional/interface_zmq.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ def test_basic(self):
123123
hex = rawtx.receive()
124124
assert_equal(payment_txid, hash256_reversed(hex).hex())
125125

126+
# Mining the block with this tx should result in second notification
127+
# after coinbase tx notification
128+
self.nodes[0].generatetoaddress(1, ADDRESS_BCRT1_UNSPENDABLE)
129+
hashtx.receive()
130+
txid = hashtx.receive()
131+
assert_equal(payment_txid, txid.hex())
132+
126133

127134
self.log.info("Test the getzmqnotifications RPC")
128135
assert_equal(self.nodes[0].getzmqnotifications(), [

0 commit comments

Comments
 (0)