()
| 1800 | return only_one(n.rpc.listpeerchannels()['channels']) |
| 1801 | |
| 1802 | def bump_psbt(): |
| 1803 | startweight = 42 + 173 |
| 1804 | rate = int(find_next_feerate(l1, l2)[:-5]) |
| 1805 | # We 2x the feerate to beat the min-relay fee |
| 1806 | next_feerate = '{}perkw'.format(rate * 2) |
| 1807 | return l1.rpc.utxopsbt(chan_amount, next_feerate, startweight, |
| 1808 | prev_utxos, reservedok=True, |
| 1809 | excess_as_change=True)['psbt'] |
| 1810 | |
| 1811 | # Build the replacement PSBT now: once the funding tx confirms, its |
| 1812 | # input is a spent UTXO and utxopsbt won't hand it to us at all. |
no test coverage detected