mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-07 14:29:33 +01:00
89ceb273f5
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
5.5 KiB
5.5 KiB
1 | #include <common/cryptomsg.h> |
---|---|
2 | #include <common/wireaddr.h> |
3 | #include <wire/gen_onion_wire.h> |
4 | # Initialize the gossip daemon. |
5 | # Pass JSON-RPC getnodes call through |
6 | #include <lightningd/gossip_msg.h> |
7 | # Pass JSON-RPC getroute call through |
8 | # Ping/pong test. Waits for a reply if it expects one. |
9 | # False if id in gossip_ping was unknown. |
10 | # 0 == no pong expected |
11 | # Set artificial maximum reply_channel_range size. Master->gossipd |
12 | # gossipd->master: we're closing this channel. |
13 | # Gossipd->master get this tx output please. |
14 | # master->gossipd an htlc failed with this onion error. |
15 | # master -> gossipd: stop gossip timers. |
16 | # master -> gossipd: do you have a memleak? |
17 | # master -> gossipd: please rewrite the gossip_store |
18 | # gossipd -> master: ok |
19 | #include <common/bolt11.h> |
20 | # master -> gossipd: get route_info for our incoming channels |
21 | # gossipd -> master: here they are. |
22 | # master -> gossipd: blockheight increased. |