rgb-cln/gossipd
Rusty Russell 3ae0c20026 getroute: change definition (and pay default) for riskfactor.
Up until now, riskfactor was useless due to implementation bugs, and
also the default setting is wrong (too low to have an effect on
reasonable payment scenarios).

Let's simplify the definition (by assuming that P(failure) of a node
is 1), to make it a simple percentage.  I examined the current network
fees to see what would work, and under this definition, a default of
10 seems reasonable (equivalent to 1000 under the old definition).

It is *this* change which finally fixes our test case!  The riskfactor
is now 40msat (1500000 * 14 * 10 / 5259600 = 39.9), comparable with
worst-case fuzz is 50msat (1001 * 0.05 = 50).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-02-06 18:39:52 +01:00
..
test getroute: allow caller to specify maximum hops. 2019-01-15 12:01:38 +01:00
Makefile common: make funding_tx and withdraw_tx share UTXO code. 2018-12-06 23:11:51 +01:00
broadcast.c gossipd: wire up memleak detection. 2018-11-22 05:15:42 +00:00
broadcast.h gossipd: wire up memleak detection. 2018-11-22 05:15:42 +00:00
gossip_constants.h gossipd: split wire types into msgs from lightningd and msgs from per-peer daemons 2018-11-21 00:36:31 +00:00
gossip_peerd_wire.csv gossipd: split wire types into msgs from lightningd and msgs from per-peer daemons 2018-11-21 00:36:31 +00:00
gossip_store.c gossipd: split wire types into msgs from lightningd and msgs from per-peer daemons 2018-11-21 00:36:31 +00:00
gossip_store.csv gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_store.h gossipd: invalidate old gossip_stores. 2018-09-21 17:56:15 +02:00
gossip_wire.csv gossipd: fix riskfactor passing. 2019-02-06 18:39:52 +01:00
gossipd.c gossipd: fix riskfactor passing. 2019-02-06 18:39:52 +01:00
routing.c getroute: change definition (and pay default) for riskfactor. 2019-02-06 18:39:52 +01:00
routing.h gossipd: increase randomness in route selection. 2019-02-06 18:39:52 +01:00