test: rename CBlockHeader .hash -> .hash_hex for consistency

Note that we unfortunately can't use a scripted diff here, as the
`.hash` symbol is also used for other instances (e.g. CInv).
This commit is contained in:
Sebastian Falbesoner committed 2025-07-17 12:45:35 +02:00
1 parent 23be0ec2f0
commit 2118301d77
22 files changed
+84 -84

No files matched your search

+2 -2
View File
@@ -1341,9 +1341,9 @@ class TaprootTest(BitcoinTestFramework):
if err_msg is not None:
assert block_response is not None and err_msg in block_response, "Missing error message '%s' from block response '%s': %s" % (err_msg, "(None)" if block_response is None else block_response, msg)
if accept:
assert node.getbestblockhash() == block.hash, "Failed to accept: %s (response: %s)" % (msg, block_response)
assert node.getbestblockhash() == block.hash_hex, "Failed to accept: %s (response: %s)" % (msg, block_response)
self.tip = block.hash_int
self.lastblockhash = block.hash
self.lastblockhash = block.hash_hex
self.lastblocktime += 1
self.lastblockheight += 1
else: