aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/util.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-06-29 14:52:13 +0100
committerJohn Newbery <john@johnnewbery.com>2017-07-02 21:55:13 +0100
commit27c63dc059f17f86bfa2ece0eb456b75340498fe (patch)
treeb94e4f2238c3dd9ad5dade4c5dd6ae751868d692 /test/functional/test_framework/util.py
parent2935b469ae96a3203bb997a6eddc098903b336ce (diff)
downloadbitcoin-27c63dc059f17f86bfa2ece0eb456b75340498fe.tar.xz
[tests] nits in dbcrash.py
Diffstat (limited to 'test/functional/test_framework/util.py')
-rw-r--r--test/functional/test_framework/util.py5
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()