lightningd tells us to connect to a peer by id, with optional addr hint. */
| 1800 | |
| 1801 | /* lightningd tells us to connect to a peer by id, with optional addr hint. */ |
| 1802 | static void connect_to_peer(struct daemon *daemon, const u8 *msg) |
| 1803 | { |
| 1804 | struct node_id id; |
| 1805 | struct wireaddr_internal *addrhint; |
| 1806 | struct wireaddr *addrs; |
| 1807 | |
| 1808 | if (!fromwire_connectd_connect_to_peer(tmpctx, msg, |
| 1809 | &id, &addrs, &addrhint)) |
| 1810 | master_badmsg(WIRE_CONNECTD_CONNECT_TO_PEER, msg); |
| 1811 | |
| 1812 | try_connect_peer(daemon, &id, addrs, addrhint); |
| 1813 | } |
| 1814 | |
| 1815 | /* lightningd tells us a peer should be disconnected. */ |
| 1816 | static void peer_discard(struct daemon *daemon, const u8 *msg) |
no test coverage detected