Skip to content

Commit

Permalink
Fix DEVELOPER guard for ping
Browse files Browse the repository at this point in the history
ping_req() should be outside of DEVELOPER guard now.
  • Loading branch information
conanoc authored and rustyrussell committed Aug 15, 2018
1 parent 795e0e1 commit b1900b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gossipd/gossip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,6 @@ static struct io_plan *getnodes(struct io_conn *conn, struct daemon *daemon,
return daemon_conn_read_next(conn, &daemon->master);
}

#if DEVELOPER
static struct io_plan *ping_req(struct io_conn *conn, struct daemon *daemon,
const u8 *msg)
{
Expand Down Expand Up @@ -1583,6 +1582,7 @@ static struct io_plan *ping_req(struct io_conn *conn, struct daemon *daemon,
return daemon_conn_read_next(conn, &daemon->master);
}

#if DEVELOPER
static struct io_plan *query_scids_req(struct io_conn *conn,
struct daemon *daemon,
const u8 *msg)
Expand Down Expand Up @@ -2124,10 +2124,10 @@ static struct io_plan *recv_req(struct io_conn *conn, struct daemon_conn *master
case WIRE_GOSSIP_LOCAL_CHANNEL_CLOSE:
return handle_local_channel_close(conn, daemon, master->msg_in);

#if DEVELOPER
case WIRE_GOSSIP_PING:
return ping_req(conn, daemon, daemon->master.msg_in);

#if DEVELOPER
case WIRE_GOSSIP_QUERY_SCIDS:
return query_scids_req(conn, daemon, daemon->master.msg_in);

Expand All @@ -2144,7 +2144,6 @@ static struct io_plan *recv_req(struct io_conn *conn, struct daemon_conn *master
return dev_gossip_suppress(conn, daemon,
daemon->master.msg_in);
#else
case WIRE_GOSSIP_PING:
case WIRE_GOSSIP_QUERY_SCIDS:
case WIRE_GOSSIP_SEND_TIMESTAMP_FILTER:
case WIRE_GOSSIP_QUERY_CHANNEL_RANGE:
Expand Down

0 comments on commit b1900b1

Please sign in to comment.