Browse Source

gossipd: minor cleanups.

Suggested-by: @cdecker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
1bb7713274
  1. 2
      gossipd/gossip.c
  2. 2
      lightningd/gossip_control.c

2
gossipd/gossip.c

@ -930,7 +930,7 @@ static void handle_query_short_channel_ids(struct peer *peer, u8 *msg)
* - MAY fail the connection.
*/
if (peer->scid_queries || peer->scid_query_nodes) {
peer_error(peer, "Bad second query_short_channel_ids");
peer_error(peer, "Bad concurrent query_short_channel_ids");
return;
}

2
lightningd/gossip_control.c

@ -706,6 +706,8 @@ static void json_channel_range_reply(struct subd *gossip UNUSED, const u8 *reply
}
json_object_start(response, NULL);
/* As this is a dev interface, we don't bother saving and
* returning all the replies, just the final one. */
json_add_num(response, "final_first_block", final_first_block);
json_add_num(response, "final_num_blocks", final_num_blocks);
json_add_bool(response, "final_complete", final_complete);

Loading…
Cancel
Save