Skip to content

Commit 1b615e6

Browse files
committed
zmq test: Actually make reorg occur
1 parent d692d19 commit 1b615e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/interface_zmq.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""Test the ZMQ notification interface."""
66
import struct
77

8-
from test_framework.address import ADDRESS_BCRT1_UNSPENDABLE
8+
from test_framework.address import ADDRESS_BCRT1_UNSPENDABLE, ADDRESS_BCRT1_P2WSH_OP_TRUE
99
from test_framework.test_framework import BitcoinTestFramework
1010
from test_framework.messages import CTransaction, hash256
1111
from test_framework.util import assert_equal, connect_nodes
@@ -177,8 +177,8 @@ def test_reorg(self):
177177
assert_equal(hashtx.receive().hex(), payment_txid)
178178
assert_equal(hashtx.receive().hex(), disconnect_cb)
179179

180-
# Generate 2 blocks in nodes[1]
181-
connect_blocks = self.nodes[1].generatetoaddress(2, ADDRESS_BCRT1_UNSPENDABLE)
180+
# Generate 2 blocks in nodes[1] to a different address to ensure split
181+
connect_blocks = self.nodes[1].generatetoaddress(2, ADDRESS_BCRT1_P2WSH_OP_TRUE)
182182

183183
# nodes[0] will reorg chain after connecting back nodes[1]
184184
connect_nodes(self.nodes[0], 1)

0 commit comments

Comments
 (0)