diff --git a/CHANGELOG.md b/CHANGELOG.md index 08d8db27f..3d1263f39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/gossipd/gossipd.c b/gossipd/gossipd.c index e9713cf08..d821702fe 100644 --- a/gossipd/gossipd.c +++ b/gossipd/gossipd.c @@ -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);