(node_factory, executor)
| 3845 | @unittest.skipIf(not EXPERIMENTAL_FEATURES, "quiescence is experimental") |
| 3846 | @pytest.mark.developer("quiescence triggering is dev only") |
| 3847 | def test_quiescence(node_factory, executor): |
| 3848 | l1, l2 = node_factory.line_graph(2) |
| 3849 | |
| 3850 | # Works fine. |
| 3851 | l1.pay(l2, 1000) |
| 3852 | |
| 3853 | assert l1.rpc.call('dev-quiesce', [l2.info['id']]) == {} |
| 3854 | |
| 3855 | # Both should consider themselves quiescent. |
| 3856 | l1.daemon.wait_for_log("STFU complete: we are quiescent") |
| 3857 | l2.daemon.wait_for_log("STFU complete: we are quiescent") |
| 3858 | |
| 3859 | # Should not be able to increase fees. |
| 3860 | l1.rpc.call('dev-feerate', [l2.info['id'], 9999]) |
| 3861 | |
| 3862 | try: |
| 3863 | l1.daemon.wait_for_log('peer_out WIRE_UPDATE_FEE', 5) |
| 3864 | assert False |
| 3865 | except TimeoutError: |
| 3866 | pass |
| 3867 | |
| 3868 | |
| 3869 | def test_htlc_failed_noclose(node_factory): |
nothing calls this directly
no test coverage detected