(node_factory, bitcoind)
| 762 | @pytest.mark.openchannel('v1') |
| 763 | @pytest.mark.openchannel('v2') |
| 764 | def test_splice_unannounced(node_factory, bitcoind): |
| 765 | l1, l2 = node_factory.line_graph(2, fundamount=1000000, wait_for_announce=False) |
| 766 | |
| 767 | chan_id = l1.get_channel_id(l2) |
| 768 | |
| 769 | # add extra sats to pay fee |
| 770 | funds_result = l1.rpc.fundpsbt("111722sat", 0, 0, excess_as_change=True) |
| 771 | result = l1.rpc.splice_init(chan_id, 100000, funds_result['psbt']) |
| 772 | result = l1.rpc.splice_update(chan_id, result['psbt']) |
| 773 | assert(result['commitments_secured'] is False) |
| 774 | result = l1.rpc.splice_update(chan_id, result['psbt']) |
| 775 | assert(result['commitments_secured'] is True) |
| 776 | result = l1.rpc.signpsbt(result['psbt']) |
| 777 | result = l1.rpc.splice_signed(chan_id, result['signed_psbt']) |
| 778 | |
| 779 | l2.daemon.wait_for_log(r'CHANNELD_NORMAL to CHANNELD_AWAITING_SPLICE') |
| 780 | l1.daemon.wait_for_log(r'CHANNELD_NORMAL to CHANNELD_AWAITING_SPLICE') |
| 781 | |
| 782 | bitcoind.generate_block(1, wait_for_mempool=1) |
| 783 | |
| 784 | l2.daemon.wait_for_log(r'CHANNELD_AWAITING_SPLICE to CHANNELD_NORMAL') |
| 785 | l1.daemon.wait_for_log(r'CHANNELD_AWAITING_SPLICE to CHANNELD_NORMAL') |
| 786 | bitcoind.generate_block(1) |
| 787 | sync_blockheight(bitcoind, [l1, l2]) |
| 788 | |
| 789 | |
| 790 | @pytest.mark.openchannel('v1') |
nothing calls this directly
no test coverage detected