Read past gossip chatter to openingd's answer to our open_channel.
(lconn)
| 5279 | |
| 5280 | |
| 5281 | def read_channel_reply(lconn): |
| 5282 | """Read past gossip chatter to openingd's answer to our open_channel.""" |
| 5283 | for _ in range(20): |
| 5284 | msg = lconn.read_message() |
| 5285 | mtype = int.from_bytes(msg[0:2], 'big') |
| 5286 | if mtype in (WIRE_ACCEPT_CHANNEL, WIRE_WARNING, WIRE_ERROR): |
| 5287 | return mtype |
| 5288 | raise AssertionError("no reply to open_channel") |
| 5289 | |
| 5290 | |
| 5291 | def send_funding_created(lconn, temp_chan_id): |
no test coverage detected