()
| 1365 | assert inflights[-1]['funding_txid'] in bitcoind.rpc.getrawmempool() |
| 1366 | |
| 1367 | def run_retry(): |
| 1368 | startweight = 42 + 173 |
| 1369 | rate = int(find_next_feerate(l1, l2)[:-5]) |
| 1370 | # We 2x the feerate to beat the min-relay fee |
| 1371 | next_feerate = '{}perkw'.format(rate * 2) |
| 1372 | initpsbt = l1.rpc.utxopsbt(chan_amount, next_feerate, startweight, |
| 1373 | prev_utxos, reservedok=True, |
| 1374 | excess_as_change=True) |
| 1375 | |
| 1376 | l1.rpc.connect(l2.info['id'], 'localhost', l2.port) |
| 1377 | bump = l1.rpc.openchannel_bump(chan_id, chan_amount, |
| 1378 | initpsbt['psbt'], |
| 1379 | funding_feerate=next_feerate) |
| 1380 | # We should be able to call this with while an open is progress |
| 1381 | # but not yet committed |
| 1382 | l1.rpc.dev_sign_last_tx(l2.info['id']) |
| 1383 | update = l1.rpc.openchannel_update(chan_id, bump['psbt']) |
| 1384 | assert update['commitments_secured'] |
| 1385 | |
| 1386 | return l1.rpc.signpsbt(update['psbt'])['signed_psbt'] |
| 1387 | |
| 1388 | signed_psbt = run_retry() |
| 1389 | l1.rpc.openchannel_signed(chan_id, signed_psbt) |
no test coverage detected