mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 18:52:29 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user