rgb-cln/plugins
Vasil Dimov 89ceb273f5 wire: remove towire_double()
Before this patch we used to send `double`s over the wire by just
copying them. This is not portable because the internal represenation
of a `double` is implementation specific.

Instead of this, multiply any floating-point numbers that come from
the outside (e.g. JSONs) by 1 million and round them to integers when
handling them.

* Introduce a new param_millionths() that expects a floating-point
  number and returns it multipled by 1000000 as an integer.

* Replace param_double() and param_percent() with param_millionths()

* Previously the riskfactor would be allowed to be negative, which must
  have been unintentional. This patch changes that to require a
  non-negative number.

Changelog-None
2020-02-27 09:07:04 +10:30
..
.gitignore gitignore: extend with recently added build products 2020-02-21 09:44:41 +01:00
Makefile plugins/bcli: a new plugin for gathering Bitcoin data 2020-02-12 11:45:07 +10:30
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00
autoclean.c libplugin: generalize the plugin_timer callback type 2020-02-12 11:45:07 +10:30
bcli.c plugins/bcli: register Bitcoin-related options 2020-02-12 11:45:07 +10:30
fundchannel.c libplugin: use json_stream for all plugins' commands 2020-02-10 09:49:15 +10:30
libplugin.c libplugin: use a typesafe_cb for plugin_timer 2020-02-18 10:21:48 +10:30
libplugin.h libplugin: use a typesafe_cb for plugin_timer 2020-02-18 10:21:48 +10:30
pay.c wire: remove towire_double() 2020-02-27 09:07:04 +10:30

README.md

Plugin Directory

Any file in this directory which is executable and whose name only consists of alphanumeric characters, space, '.', '-' or '_' will be automatically loaded when lightningd starts (unless suppressed with commandline options).