diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-07-27 20:04:51 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-08-19 19:02:11 +0200 |
commit | fab2e23b579c44f1b4bed4d813bbe5a21eaa22c8 (patch) | |
tree | 7409c4da5d5b76eb6046a1441e0f120ae7f89f01 /test/functional/feature_dbcrash.py | |
parent | faf7e9280487d643cf59681df2711d72675b5ad4 (diff) | |
download | bitcoin-fab2e23b579c44f1b4bed4d813bbe5a21eaa22c8.tar.xz |
Use generate* from TestFramework
The changes in feature_rbf can be reviewed with
--color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
Diffstat (limited to 'test/functional/feature_dbcrash.py')
-rwxr-xr-x | test/functional/feature_dbcrash.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/feature_dbcrash.py b/test/functional/feature_dbcrash.py index 5bbcd20016..f0766ca7c2 100755 --- a/test/functional/feature_dbcrash.py +++ b/test/functional/feature_dbcrash.py @@ -217,7 +217,7 @@ class ChainstateWriteCrashTest(BitcoinTestFramework): # Start by creating a lot of utxos on node3 initial_height = self.nodes[3].getblockcount() - utxo_list = create_confirmed_utxos(self.nodes[3].getnetworkinfo()['relayfee'], self.nodes[3], 5000) + utxo_list = create_confirmed_utxos(self, self.nodes[3].getnetworkinfo()['relayfee'], self.nodes[3], 5000) self.log.info(f"Prepped {len(utxo_list)} utxo entries") # Sync these blocks with the other nodes @@ -253,7 +253,8 @@ class ChainstateWriteCrashTest(BitcoinTestFramework): self.log.debug("Mining longer tip") block_hashes = [] while current_height + 1 > self.nodes[3].getblockcount(): - block_hashes.extend(self.nodes[3].generatetoaddress( + block_hashes.extend(self.generatetoaddress( + self.nodes[3], nblocks=min(10, current_height + 1 - self.nodes[3].getblockcount()), # new address to avoid mining a block that has just been invalidated address=self.nodes[3].getnewaddress(), |