mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-05 13:11:57 +02:00
Use generate* from TestFramework
The changes in feature_rbf can be reviewed with --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
This commit is contained in:
@ -67,7 +67,7 @@ class MaxUploadTest(BitcoinTestFramework):
|
||||
p2p_conns.append(self.nodes[0].add_p2p_connection(TestP2PConn()))
|
||||
|
||||
# Now mine a big block
|
||||
mine_large_block(self.nodes[0], self.utxo_cache)
|
||||
mine_large_block(self, self.nodes[0], self.utxo_cache)
|
||||
|
||||
# Store the hash; we'll request this later
|
||||
big_old_block = self.nodes[0].getbestblockhash()
|
||||
@ -78,7 +78,7 @@ class MaxUploadTest(BitcoinTestFramework):
|
||||
self.nodes[0].setmocktime(int(time.time()) - 2*60*60*24)
|
||||
|
||||
# Mine one more block, so that the prior block looks old
|
||||
mine_large_block(self.nodes[0], self.utxo_cache)
|
||||
mine_large_block(self, self.nodes[0], self.utxo_cache)
|
||||
|
||||
# We'll be requesting this new block too
|
||||
big_new_block = self.nodes[0].getbestblockhash()
|
||||
|
Reference in New Issue
Block a user