From 2399a0600ca9c4b676fa2f97520b8ecc44642246 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Mon, 13 Jul 2020 13:43:13 -0400 Subject: [PATCH] Add test case for mempool->block zmq notification --- test/functional/interface_zmq.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/functional/interface_zmq.py b/test/functional/interface_zmq.py index 863173b0a4..872a1bb718 100755 --- a/test/functional/interface_zmq.py +++ b/test/functional/interface_zmq.py @@ -123,6 +123,13 @@ class ZMQTest (BitcoinTestFramework): hex = rawtx.receive() assert_equal(payment_txid, hash256_reversed(hex).hex()) + # Mining the block with this tx should result in second notification + # after coinbase tx notification + self.nodes[0].generatetoaddress(1, ADDRESS_BCRT1_UNSPENDABLE) + hashtx.receive() + txid = hashtx.receive() + assert_equal(payment_txid, txid.hex()) + self.log.info("Test the getzmqnotifications RPC") assert_equal(self.nodes[0].getzmqnotifications(), [