()
| 3904 | target_msat = total_msat * 80 // 100 |
| 3905 | |
| 3906 | def l2_msat(): |
| 3907 | return int(only_one(l2.rpc.listpeerchannels()['channels'])['to_us_msat']) |
| 3908 | |
| 3909 | # Balances lag a payment behind, so track what we sent and wait for it: |
| 3910 | # reading to_us_msat straight after pay() returns overshoots and then asks |
no test coverage detected