Bugfix: QA: interface_zmq: Compare txid correctly when it is a Segwit tx

This commit is contained in:
Luke Dashjr 2024-04-25 01:03:36 +00:00
parent 5bfb217389
commit abb97b7960

View File

@ -302,7 +302,10 @@ class ZMQTest (BitcoinTestFramework):
if self.is_wallet_compiled():
wallettxid = hashwallettx.receive(b"hashwallettx-mempool")
wallethex = rawwallettx.receive(b"rawwallettx-mempool")
assert_equal(hash256_reversed(wallethex), wallettxid)
wallettx = CTransaction()
wallettx.deserialize(io.BytesIO(wallethex))
wallettx.calc_sha256()
assert_equal(wallettx.hash, wallettxid.hex())
self.log.info("Test the getzmqnotifications RPC")
assert_equal(self.nodes[0].getzmqnotifications(), [