(node_factory, executor)
| 3791 | |
| 3792 | |
| 3793 | def test_quiescence(node_factory, executor): |
| 3794 | l1, l2 = node_factory.line_graph(2) |
| 3795 | |
| 3796 | # Works fine. |
| 3797 | l1.pay(l2, 1000) |
| 3798 | |
| 3799 | assert l1.rpc.call('dev-quiesce', [l2.info['id']]) == {} |
| 3800 | |
| 3801 | # Both should consider themselves quiescent. |
| 3802 | l1.daemon.wait_for_log("STFU complete: we are quiescent") |
| 3803 | l2.daemon.wait_for_log("STFU complete: we are quiescent") |
| 3804 | |
| 3805 | # Should not be able to increase fees. |
| 3806 | l1.rpc.call('dev-feerate', [l2.info['id'], 9999]) |
| 3807 | |
| 3808 | try: |
| 3809 | l1.daemon.wait_for_log('peer_out WIRE_UPDATE_FEE', 5) |
| 3810 | assert False |
| 3811 | except TimeoutError: |
| 3812 | pass |
| 3813 | |
| 3814 | |
| 3815 | def test_htlc_failed_noclose(node_factory): |
nothing calls this directly
no test coverage detected