test: introduce and use CTransaction .wtxid_int property

This commits removes the `.calc_sha256` method from the CTransaction
and introduces a property `.wtxid_int` property as replacement.
This commit is contained in:
Sebastian Falbesoner committed 2025-06-09 17:28:28 +02:00
1 parent 9b3dce24a3
commit e9cdaefb0a
5 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ class TxPrivacyTest(BitcoinTestFramework):
# Spy should only get an inv for the second transaction as the first
# one was received pre-verack with the spy
spy.wait_for_inv_match(CInv(MSG_WTX, tx2.calc_sha256(True)))
spy.wait_for_inv_match(CInv(MSG_WTX, tx2.wtxid_int))
if __name__ == '__main__':
TxPrivacyTest(__file__).main()