Skip to content

Commit

Permalink
gossipd: use riskfactor in getroute, not "1".
Browse files Browse the repository at this point in the history
AFAICT, this was there in the original commit by @cdecker.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Oct 9, 2018
1 parent d946e96 commit de37586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ changes.
- JSON RPC: `getinfo` now shows correct Tor port.
- JSON RPC: `ping` now works even after one peer fails to respond.
- JSON RPC: `getroute` `fuzzpercent` and `pay` `maxfeepercent` can now be > 100.
- JSON RPC: `riskfactor` in `pay` and `getroute` no longer always treated as 1.
- Protocol: fix occasional deadlock when both peers flood with gossip.
- Protocol: fix occasional long delay on sending `reply_short_channel_ids_end`.
- Protocol: re-send `node_announcement` when address/alias/color etc change.
Expand Down
2 changes: 1 addition & 1 deletion gossipd/gossipd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ static struct io_plan *getroute_req(struct io_conn *conn, struct daemon *daemon,
pubkey_to_hexstr(tmpctx, &destination), msatoshi);

hops = get_route(tmpctx, daemon->rstate, &source, &destination,
msatoshi, 1, final_cltv,
msatoshi, riskfactor, final_cltv,
fuzz, &seed);

out = towire_gossip_getroute_reply(msg, hops);
Expand Down

0 comments on commit de37586

Please sign in to comment.