Browse Source

gossipd: use riskfactor in getroute, not "1".

AFAICT, this was there in the original commit by @cdecker.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
fee-tracking2
Rusty Russell 6 years ago
parent
commit
de37586a97
  1. 1
      CHANGELOG.md
  2. 2
      gossipd/gossipd.c

1
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.

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

Loading…
Cancel
Save