gossipd/routing.c
static bool update_to_pending(struct routing_state *rstate,
			      const struct short_channel_id *scid,
			      const u8 *update)
{
	struct pending_cannouncement *pending;

	pending = find_pending_cannouncement(rstate, scid);
	if (!pending)
		return false;

	/* FIXME: should compare timestamps! */
	tal_free(pending->update);
	pending->update = tal_dup_arr(pending, u8, update, tal_len(update), 0);
	return true;
}
/* Return true if this is an update to a pending announcement (and queue it) */
Return true if this is an update to a pending announcement (and queue it)
Return true if this is an update to a pending announcement ( and queue it )
static bool update_to_pending(struct routing_state *rstate,
			      const struct short_channel_id *scid,
			      const u8 *update)
{
	struct pending_cannouncement *pending;
	pending = find_pending_cannouncement(rstate, scid);
	if (!pending)
		return false;
	tal_free(pending->update);
	pending->update = tal_dup_arr(pending, u8, update, tal_len(update), 0);
	return true;
}
static bool update_to_pending ( struct routing_state * rstate , const struct short_channel_id * scid , const u8 * update ) { struct pending_cannouncement * pending ; pending = find_pending_cannouncement ( rstate , scid ) ; if ( ! pending ) return false ; tal_free ( pending -> update ) ; pending -> update = tal_dup_arr ( pending , u8 , update , tal_len ( update ) , 0 ) ; return true ; }
Return true if this is an update to a pending announcement (and queue it)
Return true if this is an update to a pending announcement ( and queue it )
/* FIXME: should compare timestamps! */