rgb-cln/gossipd
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
..
test common: move json_stream helpers to common/json 2020-02-04 13:24:32 +10:30
Makefile common: use struct onionreply. 2020-01-23 16:17:42 +10:30
broadcast.h gossipd: remove broadcast map altogether. 2019-06-04 01:29:39 +00:00
gossip_generation.c gossipd: remove chainparams local var. 2019-11-20 20:41:53 +01:00
gossip_generation.h gossipd: naming cleanups. 2019-09-20 06:55:00 +00:00
gossip_peerd_wire.csv gossipd: push our own gossip messages harder. 2019-10-14 15:00:37 -05:00
gossip_store.c connectd, gossipd: use per-peer logging. 2019-11-18 04:50:22 +00:00
gossip_store.csv wire-gen: move in-house wire delcarations to new format 2019-07-24 06:31:46 +00:00
gossip_store.h gossipd: set the push marker for our own messages. 2019-11-04 17:50:58 +01:00
gossip_wire.csv wire: remove towire_double() 2020-02-27 09:07:04 +10:30
gossipd.c wire: remove towire_double() 2020-02-27 09:07:04 +10:30
gossipd.h gossipd: remove chainparams local var. 2019-11-20 20:41:53 +01:00
queries.c gossipd: remove chainparams local var. 2019-11-20 20:41:53 +01:00
queries.h gossipd: hand (any) timestamps through to callback for query_channel_range. 2019-10-10 21:48:52 -05:00
routing.c gossipd: remove assert which can trigger. 2020-02-15 08:48:04 +10:30
routing.h gossipd: remove chainparams local var. 2019-11-20 20:41:53 +01:00
seeker.c gossipd: don't crash if we have > 7000 stale short_channel_ids. 2019-11-21 04:21:38 +00:00
seeker.h gossipd: restore dev-suppress-gossip functionality. 2019-10-10 21:48:52 -05:00