mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-05 21:44:42 +01:00
ab31f40aa2
This means there's now a semantic difference between the default `fromid` and setting `fromid` explicitly to our own node_id. In the default case, it means we don't charge ourselves fees on the route. This means we can spend the full channel balance. We still want to consider the pricing of local channels, however: there's a *reason* to discount one over another, and that is to bias things. So we add the first-hop fee to the *risk* value instead. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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 | # Test of query_short_channel_ids. Master->gossipd |
12 | # Gossipd -> master |
13 | # Test gossip timestamp filtering. |
14 | # Test of query_channel_range. Master->gossipd |
15 | # Gossipd -> master |
16 | # Set artificial maximum reply_channel_range size. Master->gossipd |
17 | # gossipd->master: we're closing this channel. |
18 | # Gossipd->master get this tx output please. |
19 | # master->gossipd an htlc failed with this onion error. |
20 | # master -> gossipd: stop gossip timers. |
21 | # master -> gossipd: do you have a memleak? |
22 | # master -> gossipd: please rewrite the gossip_store |
23 | # gossipd -> master: ok |
24 | #include <common/bolt11.h> |
25 | # master -> gossipd: get route_info for our incoming channels |
26 | # gossipd -> master: here they are. |