mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01: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:
@@ -272,7 +272,7 @@ class AssumeutxoTest(BitcoinTestFramework):
|
||||
block_time = node0.getblock(node0.getbestblockhash())['time'] + 1
|
||||
fork_block1 = create_block(int(parent_block_hash, 16), create_coinbase(SNAPSHOT_BASE_HEIGHT), block_time)
|
||||
fork_block1.solve()
|
||||
fork_block2 = create_block(fork_block1.sha256, create_coinbase(SNAPSHOT_BASE_HEIGHT + 1), block_time + 1)
|
||||
fork_block2 = create_block(fork_block1.hash_int, create_coinbase(SNAPSHOT_BASE_HEIGHT + 1), block_time + 1)
|
||||
fork_block2.solve()
|
||||
node1.submitheader(fork_block1.serialize().hex())
|
||||
node1.submitheader(fork_block2.serialize().hex())
|
||||
|
||||
Reference in New Issue
Block a user