(node_factory, bitcoind, chainparams)
| 790 | @unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need') |
| 791 | @pytest.mark.openchannel('v2') |
| 792 | def test_rbf_no_overlap(node_factory, bitcoind, chainparams): |
| 793 | l1, l2 = node_factory.get_nodes(2, |
| 794 | opts={'allow_warning': True}) |
| 795 | |
| 796 | l1.rpc.connect(l2.info['id'], 'localhost', l2.port) |
| 797 | amount = 2**24 |
| 798 | chan_amount = 100000 |
| 799 | bitcoind.rpc.sendtoaddress(l1.rpc.newaddr()['bech32'], amount / 10**8 + 0.01) |
| 800 | bitcoind.rpc.sendtoaddress(l1.rpc.newaddr()['bech32'], amount / 10**8 + 0.01) |
| 801 | bitcoind.generate_block(1) |
| 802 | # Wait for it to arrive. |
| 803 | wait_for(lambda: len(l1.rpc.listfunds()['outputs']) > 0) |
| 804 | |
| 805 | res = l1.rpc.fundchannel(l2.info['id'], chan_amount) |
| 806 | chan_id = res['channel_id'] |
| 807 | |
| 808 | # Check that we're waiting for lockin |
| 809 | l1.daemon.wait_for_log(' to DUALOPEND_AWAITING_LOCKIN') |
| 810 | |
| 811 | next_feerate = find_next_feerate(l1, l2) |
| 812 | |
| 813 | # Initiate an RBF (this grabs the non-reserved utxo, which isnt the |
| 814 | # one we started with) |
| 815 | startweight = 42 + 172 # base weight, funding output |
| 816 | initpsbt = l1.rpc.fundpsbt(chan_amount, next_feerate, startweight, |
| 817 | min_witness_weight=110, |
| 818 | excess_as_change=True) |
| 819 | |
| 820 | # Do the bump |
| 821 | bump = l1.rpc.openchannel_bump(chan_id, chan_amount, initpsbt['psbt']) |
| 822 | |
| 823 | with pytest.raises(RpcError, match='No overlapping input present.'): |
| 824 | l1.rpc.openchannel_update(chan_id, bump['psbt']) |
| 825 | |
| 826 | |
| 827 | @unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need') |
nothing calls this directly
no test coverage detected