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

@@ -19,7 +19,7 @@ class P2PStoreBlock(P2PInterface):
self.blocks = defaultdict(int)
def on_block(self, message):
self.blocks[message.block.sha256] += 1
self.blocks[message.block.hash_int] += 1
class GetdataTest(BitcoinTestFramework):