[tests] nits in dbcrash.py

This commit is contained in:
John Newbery 2017-06-29 14:52:13 +01:00
parent 2935b469ae
commit 27c63dc059
2 changed files with 65 additions and 49 deletions
test/functional/test_framework

View file

@ -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()