diff options
author | John Newbery <john@johnnewbery.com> | 2017-06-29 14:52:13 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-07-02 21:55:13 +0100 |
commit | 27c63dc059f17f86bfa2ece0eb456b75340498fe (patch) | |
tree | b94e4f2238c3dd9ad5dade4c5dd6ae751868d692 /test/functional/test_framework/util.py | |
parent | 2935b469ae96a3203bb997a6eddc098903b336ce (diff) |
[tests] nits in dbcrash.py
Diffstat (limited to 'test/functional/test_framework/util.py')
-rw-r--r-- | test/functional/test_framework/util.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index 3c918b48fb..8a2d8de50e 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -412,7 +412,10 @@ def random_transaction(nodes, amount, min_fee, fee_increment, fee_variants): # Helper to create at least "count" utxos # Pass in a fee that is sufficient for relay and mining new transactions. def create_confirmed_utxos(fee, node, count): - node.generate(int(0.5 * count) + 101) + to_generate = int(0.5 * count) + 101 + while to_generate > 0: + node.generate(min(25, to_generate)) + to_generate -= 25 utxos = node.listunspent() iterations = count - len(utxos) addr1 = node.getnewaddress() |