Simple test for multifundchannel.
(node_factory, bitcoind)
| 1917 | @pytest.mark.openchannel('v1') |
| 1918 | @pytest.mark.openchannel('v2') |
| 1919 | def test_multifunding_simple(node_factory, bitcoind): |
| 1920 | ''' |
| 1921 | Simple test for multifundchannel. |
| 1922 | ''' |
| 1923 | l1, l2, l3, l4 = node_factory.get_nodes(4) |
| 1924 | |
| 1925 | l1.fundwallet(2000000) |
| 1926 | |
| 1927 | destinations = [{"id": '{}@localhost:{}'.format(l2.info['id'], l2.port), |
| 1928 | "amount": 50000}, |
| 1929 | {"id": '{}@localhost:{}'.format(l3.info['id'], l3.port), |
| 1930 | "amount": 50000}, |
| 1931 | {"id": '{}@localhost:{}'.format(l4.info['id'], l4.port), |
| 1932 | "amount": 50000}] |
| 1933 | |
| 1934 | l1.rpc.multifundchannel(destinations) |
| 1935 | bitcoind.generate_block(1, wait_for_mempool=1) |
| 1936 | # Don't have others reject channel_announcement as too far in future. |
| 1937 | sync_blockheight(bitcoind, [l1, l2, l3, l4]) |
| 1938 | bitcoind.generate_block(5) |
| 1939 | |
| 1940 | for node in [l1, l2, l3, l4]: |
| 1941 | node.daemon.wait_for_log(r'to CHANNELD_NORMAL') |
| 1942 | |
| 1943 | for ldest in [l2, l3, l4]: |
| 1944 | inv = ldest.rpc.invoice(5000, 'inv', 'inv')['bolt11'] |
| 1945 | l1.rpc.xpay(inv) |
| 1946 | |
| 1947 | |
| 1948 | @pytest.mark.openchannel('v1') |
nothing calls this directly
no test coverage detected