Queue a gossip message for the peer: connectd simply forwards it to * the peer. */
| 113 | /* Queue a gossip message for the peer: connectd simply forwards it to |
| 114 | * the peer. */ |
| 115 | void queue_peer_msg(struct peer *peer, const u8 *msg TAKES) |
| 116 | { |
| 117 | u8 *outermsg = towire_gossipd_send_gossip(NULL, &peer->id, msg); |
| 118 | daemon_conn_send(peer->daemon->connectd, take(outermsg)); |
| 119 | |
| 120 | if (taken(msg)) |
| 121 | tal_free(msg); |
| 122 | } |
| 123 | |
| 124 | /*~ We have a helper for messages from the store. */ |
| 125 | void queue_peer_from_store(struct peer *peer, |
no test coverage detected