gossipd: minor cleanups.

Suggested-by: @cdecker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-06-04 14:08:42 +09:30
parent e4457e59ed
commit 1bb7713274
2 changed files with 4 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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);