diff options
| author | Gregory Sanders <[email protected]> | 2020-07-13 13:43:13 -0400 |
|---|---|---|
| committer | Gregory Sanders <[email protected]> | 2020-07-13 14:18:01 -0400 |
| commit | 2399a0600ca9c4b676fa2f97520b8ecc44642246 (patch) | |
| tree | e4f155e628c8acb9981541c3d4c92e869c46120f | |
| parent | Make ordering of zmq consumption irrelevant to functional test (diff) | |
| download | discoin-2399a0600ca9c4b676fa2f97520b8ecc44642246.tar.xz discoin-2399a0600ca9c4b676fa2f97520b8ecc44642246.zip | |
Add test case for mempool->block zmq notification
| -rwxr-xr-x | test/functional/interface_zmq.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/interface_zmq.py b/test/functional/interface_zmq.py index 863173b0a..872a1bb71 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(), [ |