()
| 853 | assert inflights[-1]['funding_txid'] in bitcoind.rpc.getrawmempool() |
| 854 | |
| 855 | def run_retry(): |
| 856 | startweight = 42 + 173 |
| 857 | rate = int(find_next_feerate(l1, l2)[:-5]) |
| 858 | # We 2x the feerate to beat the min-relay fee |
| 859 | next_feerate = '{}perkw'.format(rate * 2) |
| 860 | initpsbt = l1.rpc.utxopsbt(chan_amount, next_feerate, startweight, |
| 861 | prev_utxos, reservedok=True, |
| 862 | min_witness_weight=110, |
| 863 | excess_as_change=True) |
| 864 | |
| 865 | l1.rpc.connect(l2.info['id'], 'localhost', l2.port) |
| 866 | bump = l1.rpc.openchannel_bump(chan_id, chan_amount, |
| 867 | initpsbt['psbt'], |
| 868 | funding_feerate=next_feerate) |
| 869 | # We should be able to call this with while an open is progress |
| 870 | # but not yet committed |
| 871 | l1.rpc.dev_sign_last_tx(l2.info['id']) |
| 872 | update = l1.rpc.openchannel_update(chan_id, bump['psbt']) |
| 873 | assert update['commitments_secured'] |
| 874 | |
| 875 | return l1.rpc.signpsbt(update['psbt'])['signed_psbt'] |
| 876 | |
| 877 | signed_psbt = run_retry() |
| 878 | l1.rpc.openchannel_signed(chan_id, signed_psbt) |
no test coverage detected