()
| 586 | |
| 587 | # Balances should reflect it. |
| 588 | def check_balances(): |
| 589 | c1 = only_one(l1.rpc.listpeerchannels(l2.info['id'])['channels']) |
| 590 | c2 = only_one(l2.rpc.listpeerchannels(l1.info['id'])['channels']) |
| 591 | return ( |
| 592 | c1['to_us_msat'] == 10**6 * 1000 - amt |
| 593 | and c1['total_msat'] == 10**6 * 1000 |
| 594 | and c2['to_us_msat'] == amt |
| 595 | and c2['total_msat'] == 10**6 * 1000 |
| 596 | ) |
| 597 | wait_for(check_balances) |
| 598 | |
| 599 | # Repeat will "succeed", but won't actually send anything (duplicate) |
nothing calls this directly
no test coverage detected