mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 08:04:23 +01:00
I hadn't realized that lightningd asks gossipd every time we forward a payment. But I'm going to abuse it here to get the latest channel_update, otherwise (as lightningd takes over error message generation) lightningd needs to do an async request at various painful points. So have gossipd tell us the lastest update (stripped so compatible with the strange in-onion-error format). 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 | # 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. |