mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-06 11:13:02 +02:00
test: rename CTransaction .rehash()/.hash -> .txid_hex for consistency
Note that we unfortunately can't use a scripted diff here, as the same property and method name is also used for `CBlockHeader`/`CBlock` instances.
This commit is contained in:
@@ -41,7 +41,7 @@ class DataCarrierTest(BitcoinTestFramework):
|
||||
|
||||
if success:
|
||||
self.wallet.sendrawtransaction(from_node=node, tx_hex=tx_hex)
|
||||
assert tx.rehash() in node.getrawmempool(True), f'{tx_hex} not in mempool'
|
||||
assert tx.txid_hex in node.getrawmempool(True), f'{tx_hex} not in mempool'
|
||||
else:
|
||||
assert_raises_rpc_error(-26, "datacarrier", self.wallet.sendrawtransaction, from_node=node, tx_hex=tx_hex)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user