Skip to content

Commit

Permalink
Feedback from @niftynei.
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell authored and cdecker committed Jan 15, 2019
1 parent dc2ee96 commit 80753bf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contrib/pylightning/lightning/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def getroute(self, peer_id, msatoshi, riskfactor, cltv=9, fromid=None, fuzzperce
{cltv} (default 9). If specified search from {fromid} otherwise use
this node as source. Randomize the route with up to {fuzzpercent}
(0.0 -> 100.0, default 5.0) using {seed} as an arbitrary-size string
seed. {exclude} is an optional array of scids[xDirection] to exclude.
seed. {exclude} is an optional array of scid/direction to exclude.
"""
payload = {
"id": peer_id,
Expand Down
3 changes: 2 additions & 1 deletion gossipd/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ find_route(const tal_t *ctx, struct routing_state *rstate,
}

if (max_hops > ROUTING_MAX_HOPS) {
status_info("find_route: max_hops huge amount %zu", max_hops);
status_info("find_route: max_hops huge amount %zu > %u",
max_hops, ROUTING_MAX_HOPS);
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion lightningd/gossip_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ static struct command_result *json_getroute(struct command *cmd,
&excluded_dir[i])) {
return command_fail(cmd, JSONRPC2_INVALID_PARAMS,
"%.*s is not a valid"
" id+direction",
" short_channel_id/direction",
t->end - t->start,
buffer + t->start);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_gossip.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def test_gossip_jsonrpc(node_factory):
assert only_one(channels1)['destination'] == l2.info['id']
assert channels1 == channels2

channels2 = l2.rpc.listchannels()['channels']
l2.rpc.listchannels()['channels']

# Now proceed to funding-depth and do a full gossip round
l1.bitcoin.generate_block(5)
Expand Down

0 comments on commit 80753bf

Please sign in to comment.