Test retransmission of old, now-unacceptable, feerate
(node_factory)
| 3948 | |
| 3949 | |
| 3950 | def test_old_feerate(node_factory): |
| 3951 | """Test retransmission of old, now-unacceptable, feerate""" |
| 3952 | l1, l2 = node_factory.line_graph(2, opts={'feerates': (75000, 75000, 75000, 75000), |
| 3953 | 'may_reconnect': True, |
| 3954 | 'dev-no-reconnect': None}) |
| 3955 | |
| 3956 | l1.pay(l2, 1000) |
| 3957 | l1.rpc.disconnect(l2.info['id'], force=True) |
| 3958 | |
| 3959 | # Drop acceptable feerate by l2 |
| 3960 | l2.set_feerates((7000, 7000, 7000, 7000)) |
| 3961 | l2.restart() |
| 3962 | |
| 3963 | # Minor change to l1, so it sends update_fee |
| 3964 | l1.set_feerates((74900, 74900, 74900, 74900)) |
| 3965 | l1.restart() |
| 3966 | l1.rpc.connect(l2.info['id'], 'localhost', l2.port) |
| 3967 | |
| 3968 | # This will timeout if l2 didn't accept fee. |
| 3969 | l1.pay(l2, 1000) |
| 3970 | |
| 3971 | |
| 3972 | def test_websocket(node_factory): |
nothing calls this directly
no test coverage detected