@ -630,7 +630,8 @@ static void send_node_announcement(struct daemon *daemon)
* details of the failures . The caller is expected to return the error to the
* peer , or drop the error if the message did not come from a peer .
*/
static u8 * handle_gossip_msg ( struct daemon * daemon , const u8 * msg )
static u8 * handle_gossip_msg ( struct daemon * daemon , const u8 * msg ,
const char * source )
{
struct routing_state * rstate = daemon - > rstate ;
int t = fromwire_peektype ( msg ) ;
@ -657,7 +658,7 @@ static u8 *handle_gossip_msg(struct daemon *daemon, const u8 *msg)
break ;
case WIRE_CHANNEL_UPDATE :
err = handle_channel_update ( rstate , msg ) ;
err = handle_channel_update ( rstate , msg , source ) ;
if ( err )
return err ;
break ;
@ -760,7 +761,7 @@ static struct io_plan *peer_msgin(struct io_conn *conn,
case WIRE_CHANNEL_ANNOUNCEMENT :
case WIRE_NODE_ANNOUNCEMENT :
case WIRE_CHANNEL_UPDATE :
err = handle_gossip_msg ( peer - > daemon , msg ) ;
err = handle_gossip_msg ( peer - > daemon , msg , " peer " ) ;
if ( err )
queue_peer_msg ( peer , take ( err ) ) ;
return peer_next_in ( conn , peer ) ;
@ -939,7 +940,7 @@ static struct io_plan *owner_msg_in(struct io_conn *conn,
int type = fromwire_peektype ( msg ) ;
if ( type = = WIRE_CHANNEL_ANNOUNCEMENT | | type = = WIRE_CHANNEL_UPDATE | |
type = = WIRE_NODE_ANNOUNCEMENT ) {
err = handle_gossip_msg ( peer - > daemon , dc - > msg_in ) ;
err = handle_gossip_msg ( peer - > daemon , dc - > msg_in , " subdaemon " ) ;
if ( err )
queue_peer_msg ( peer , take ( err ) ) ;
@ -1482,7 +1483,7 @@ static void gossip_send_keepalive_update(struct routing_state *rstate,
status_trace ( " Sending keepalive channel_update for %s " ,
type_to_string ( tmpctx , struct short_channel_id , & scid ) ) ;
err = handle_channel_update ( rstate , update ) ;
err = handle_channel_update ( rstate , update , " keepalive " ) ;
if ( err )
status_failed ( STATUS_FAIL_INTERNAL_ERROR ,
" rejected keepalive channel_update: %s " ,
@ -2420,7 +2421,7 @@ static struct io_plan *handle_disable_channel(struct io_conn *conn,
strerror ( errno ) ) ;
}
err = handle_channel_update ( daemon - > rstate , msg ) ;
err = handle_channel_update ( daemon - > rstate , msg , " disable_channel " ) ;
if ( err )
status_failed ( STATUS_FAIL_INTERNAL_ERROR ,
" rejected disabling channel_update: %s " ,