l1 runs with zeroreserve, l2 and l3 without, should still work Basically tests that l1 doesn't get upset when l2 allows us to drop below dust.
(node_factory, bitcoind)
| 2812 | |
| 2813 | |
| 2814 | def test_zeroreserve_mixed(node_factory, bitcoind): |
| 2815 | """l1 runs with zeroreserve, l2 and l3 without, should still work |
| 2816 | |
| 2817 | Basically tests that l1 doesn't get upset when l2 allows us to |
| 2818 | drop below dust. |
| 2819 | |
| 2820 | """ |
| 2821 | plugin_path = Path(__file__).parent / "plugins" / "zeroreserve.py" |
| 2822 | opts = [ |
| 2823 | { |
| 2824 | 'plugin': str(plugin_path), |
| 2825 | 'reserve': '0sat', |
| 2826 | 'dev-allowdustreserve': True, |
| 2827 | }, { |
| 2828 | 'dev-allowdustreserve': False, |
| 2829 | }, { |
| 2830 | 'dev-allowdustreserve': False, |
| 2831 | } |
| 2832 | ] |
| 2833 | l1, l2, l3 = node_factory.get_nodes(3, opts=opts) |
| 2834 | l1.fundwallet(10**7) |
| 2835 | l3.fundwallet(10**7) |
| 2836 | |
| 2837 | l1.connect(l2) |
| 2838 | l3.connect(l1) |
| 2839 | |
| 2840 | l1.rpc.fundchannel(l2.info['id'], 10**6, reserve='0sat') |
| 2841 | l3.rpc.fundchannel(l1.info['id'], 10**6) |
| 2842 | |
| 2843 | |
| 2844 | def test_zeroreserve_alldust(node_factory): |
nothing calls this directly
no test coverage detected