MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / mine_large_block

Function mine_large_block

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

Source from the content-addressed store, hash-verified

547 return txids
548
549def mine_large_block(node, utxos=None):
550 # generate a 66k transaction,
551 # and 14 of them is close to the 1MB block limit
552 num = 14
553 txouts = gen_return_txouts()
554 utxos = utxos if utxos is not None else []
555 if len(utxos) < num:
556 utxos.clear()
557 utxos.extend(node.listunspent())
558 fee = 100 * node.getnetworkinfo()["relayfee"]
559 create_lots_of_big_transactions(node, txouts, utxos, num, fee=fee)
560 node.generate(1)
561
562def find_vout_for_address(node, txid, addr):
563 """

Callers 4

run_testMethod · 0.90
create_big_chainMethod · 0.90
test_height_minMethod · 0.90

Calls 3

gen_return_txoutsFunction · 0.85
clearMethod · 0.45

Tested by 1

test_height_minMethod · 0.72