MCPcopy Create free account
hub / github.com/ElementsProject/lightning / sync_blockheight

Function sync_blockheight

contrib/pyln-testing/pyln/testing/utils.py:133–136  ·  view source on GitHub ↗
(bitcoind, nodes)

Source from the content-addressed store, hash-verified

131
132
133def sync_blockheight(bitcoind, nodes):
134 height = bitcoind.rpc.getblockchaininfo()['blocks']
135 for n in nodes:
136 wait_for(lambda: n.rpc.getinfo()['blockheight'] == height)
137
138
139def mine_funding_to_announce(bitcoind, nodes, num_blocks=5, wait_for_mempool=0):

Callers 15

test_reconnect_no_updateFunction · 0.90
test_funding_changeFunction · 0.90
test_funding_allFunction · 0.90
test_v2_openFunction · 0.90
test_funding_pushFunction · 0.90
test_funding_by_utxosFunction · 0.90
_closeFunction · 0.90
test_update_feeFunction · 0.90
test_fee_limitsFunction · 0.90
test_no_fee_estimateFunction · 0.90
test_multichan_stressFunction · 0.90

Calls 2

wait_forFunction · 0.85
getinfoMethod · 0.45

Tested by 15

test_reconnect_no_updateFunction · 0.72
test_funding_changeFunction · 0.72
test_funding_allFunction · 0.72
test_v2_openFunction · 0.72
test_funding_pushFunction · 0.72
test_funding_by_utxosFunction · 0.72
_closeFunction · 0.72
test_update_feeFunction · 0.72
test_fee_limitsFunction · 0.72
test_no_fee_estimateFunction · 0.72
test_multichan_stressFunction · 0.72