MCPcopy Create free account
hub / github.com/ElementsProject/elements / mine_large_block

Function mine_large_block

test/functional/test_framework/util.py:600–611  ·  view source on GitHub ↗
(test_framework, node, utxos=None)

Source from the content-addressed store, hash-verified

598
599
600def mine_large_block(test_framework, node, utxos=None):
601 # generate a 66k transaction,
602 # and 14 of them is close to the 1MB block limit
603 num = 14
604 txouts = gen_return_txouts()
605 utxos = utxos if utxos is not None else []
606 if len(utxos) < num:
607 utxos.clear()
608 utxos.extend(node.listunspent())
609 fee = 100 * node.getnetworkinfo()["relayfee"]
610 create_lots_of_big_transactions(node, txouts, utxos, num, fee=fee)
611 test_framework.generate(node, 1)
612
613
614def find_vout_for_address(node, txid, addr):

Callers 1

run_testMethod · 0.90

Calls 4

gen_return_txoutsFunction · 0.70
clearMethod · 0.45
generateMethod · 0.45

Tested by

no test coverage detected