mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-02 12:44:26 +01:00
misc: clarifications from cdecker review.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -22,7 +22,7 @@ void multiplex_final_msg(struct peer *peer,
|
||||
const u8 *final_msg TAKES);
|
||||
|
||||
/* Inject a message into the output stream. Unlike a raw msg_enqueue,
|
||||
* this does io logging if required. */
|
||||
* this does io logging. */
|
||||
void inject_peer_msg(struct peer *peer, const u8 *msg TAKES);
|
||||
|
||||
void setup_peer_gossip_store(struct peer *peer,
|
||||
|
||||
@@ -821,6 +821,12 @@ void handle_used_local_channel_update(struct daemon *daemon, const u8 *msg)
|
||||
&scid));
|
||||
return;
|
||||
}
|
||||
|
||||
/* This whole idea is racy: they might have used a *previous* update.
|
||||
* But that's OK: the notification is an optimization to avoid
|
||||
* broadcasting updates we never use (route flapping). In this case,
|
||||
* we might broadcast a more recent update than the one we sent to a
|
||||
* peer. */
|
||||
local_channel_update_latest(daemon, chan);
|
||||
}
|
||||
|
||||
|
||||
@@ -442,7 +442,7 @@ static void handle_recv_gossip(struct daemon *daemon, const u8 *outermsg)
|
||||
|
||||
peer = find_peer(daemon, &id);
|
||||
if (!peer) {
|
||||
status_broken("connectd sent gossip msg %s for unknown peer %s",
|
||||
status_broken("connectd sent gossip msg %s from unknown peer %s",
|
||||
peer_wire_name(fromwire_peektype(msg)),
|
||||
type_to_string(tmpctx, struct node_id, &id));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user