mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
Feedback from @niftynei.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
dc2ee9639b
commit
80753bfbd5
@ -153,7 +153,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
{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,
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user