aboutsummaryrefslogtreecommitdiff
path: root/test/functional/interface_zmq.py
diff options
context:
space:
mode:
authorGregory Sanders <[email protected]>2020-07-22 10:49:43 -0400
committerGregory Sanders <[email protected]>2020-09-22 11:17:50 -0400
commit1b615e61bfc464f215a1b48e6e27d1e8fc16b2d1 (patch)
treef6b941a0efdee9cf6b510e926d86957e0d2e1eeb /test/functional/interface_zmq.py
parentMerge #19849: Assert that RPCArg names are equal to CRPCCommand ones (blockch... (diff)
downloaddiscoin-1b615e61bfc464f215a1b48e6e27d1e8fc16b2d1.tar.xz
discoin-1b615e61bfc464f215a1b48e6e27d1e8fc16b2d1.zip
zmq test: Actually make reorg occur
Diffstat (limited to 'test/functional/interface_zmq.py')
-rwxr-xr-xtest/functional/interface_zmq.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/interface_zmq.py b/test/functional/interface_zmq.py
index ef4780cac..e87def693 100755
--- a/test/functional/interface_zmq.py
+++ b/test/functional/interface_zmq.py
@@ -5,7 +5,7 @@
"""Test the ZMQ notification interface."""
import struct
-from test_framework.address import ADDRESS_BCRT1_UNSPENDABLE
+from test_framework.address import ADDRESS_BCRT1_UNSPENDABLE, ADDRESS_BCRT1_P2WSH_OP_TRUE
from test_framework.test_framework import BitcoinTestFramework
from test_framework.messages import CTransaction, hash256
from test_framework.util import assert_equal, connect_nodes
@@ -177,8 +177,8 @@ class ZMQTest (BitcoinTestFramework):
assert_equal(hashtx.receive().hex(), payment_txid)
assert_equal(hashtx.receive().hex(), disconnect_cb)
- # Generate 2 blocks in nodes[1]
- connect_blocks = self.nodes[1].generatetoaddress(2, ADDRESS_BCRT1_UNSPENDABLE)
+ # Generate 2 blocks in nodes[1] to a different address to ensure split
+ connect_blocks = self.nodes[1].generatetoaddress(2, ADDRESS_BCRT1_P2WSH_OP_TRUE)
# nodes[0] will reorg chain after connecting back nodes[1]
connect_nodes(self.nodes[0], 1)