rgb-cln/plugins
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
..
.gitignore plugins: minimal 'pay' plugin. 2019-01-17 13:02:24 +01:00
Makefile plugins/pay: add shadow CLTV calculation. 2019-01-17 13:02:24 +01:00
README.md plugins: add and install built-in plugin dir, add clear and disable options. 2018-12-05 01:22:55 +01:00
libplugin.c libplugin: mention error field in error message. 2019-01-17 13:02:24 +01:00
libplugin.h plugin/libplugin: API for C plugins. 2019-01-17 13:02:24 +01:00
pay.c getroute: change definition (and pay default) for riskfactor. 2019-02-06 18:39:52 +01:00

README.md

Plugin Directory

Anything file in this directory which is executable and doesn't start and doesn't contain ASCII symbols other than '.', '-' or '_' will be automatically loaded when lightningd starts (unless suppressed with commandline options).