test: rename CBlockHeader .rehash()/.sha256 -> .hash_int for consistency

Note that we unfortunately can't use a scripted diff here, as the
`sha256` symbol is also used for other instances (e.g. as function
in hashlib, or in the `UTXO` class in p2p_segwit.py).
This commit is contained in:
Sebastian Falbesoner
2025-06-12 14:13:55 +02:00
parent 8b09cc350a
commit 23be0ec2f0
33 changed files with 141 additions and 145 deletions

View File

@@ -103,7 +103,7 @@ class AssumeValidTest(BitcoinTestFramework):
block.solve()
# Save the coinbase for later
self.block1 = block
self.tip = block.sha256
self.tip = block.hash_int
height += 1
# Bury the block 100 deep so the coinbase output is spendable
@@ -111,7 +111,7 @@ class AssumeValidTest(BitcoinTestFramework):
block = create_block(self.tip, create_coinbase(height), self.block_time)
block.solve()
self.blocks.append(block)
self.tip = block.sha256
self.tip = block.hash_int
self.block_time += 1
height += 1
@@ -124,7 +124,7 @@ class AssumeValidTest(BitcoinTestFramework):
self.block_time += 1
block102.solve()
self.blocks.append(block102)
self.tip = block102.sha256
self.tip = block102.hash_int
self.block_time += 1
height += 1
@@ -133,7 +133,7 @@ class AssumeValidTest(BitcoinTestFramework):
block = create_block(self.tip, create_coinbase(height), self.block_time)
block.solve()
self.blocks.append(block)
self.tip = block.sha256
self.tip = block.hash_int
self.block_time += 1
height += 1