mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
Bugfix: QA: interface_zmq: Compare txid correctly when it is a Segwit tx
This commit is contained in:
parent
5bfb217389
commit
abb97b7960
@ -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(), [
|
||||
|
Loading…
Reference in New Issue
Block a user