core-lightning/tools
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
..
gen json-rpc: Don't let users send messages that are handled internally 2020-01-28 23:50:52 +01:00
test
bench-gossipd.sh
build-release.sh
check-bolt.c
check-includes.sh
check-manpage.sh
check-markdown.sh
check-setup_locale.sh
check-spelling.sh
docker-entrypoint.sh
generate-wire.py wire: remove towire_double() 2020-02-27 09:07:04 +10:30
headerversions.c
hsmtool.c hsmtool: Make the backup copy in the same directory as the original 2020-01-13 08:55:32 +08:00
Makefile tool/hsmtool: add a 'guesstoremote' command 2019-11-29 21:19:05 +01:00
mockup.sh build: use [[:space:]] instead of \s in regex 2020-02-03 15:38:11 +00:00
refresh-submodules.sh
rel.sh
repro-build.sh
update-mocks.sh build: fix developer mode compilation on FreeBSD 2020-01-02 16:56:20 +01:00