mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-24 08:14:19 +01:00
Without this, we can get spurious failures from lnprototest, which is waiting for lightningd to acknowledge the blockheight in getinfo: ``` 2021-12-21T00:56:21.460Z DEBUG lightningd: Adding block 109: 57a7bd3ade3a88a899e5b442075e9722ccec07e0205f9a913b304a3e2e038e26 2021-12-21T00:56:21.470Z DEBUG lightningd: Adding block 110: 11a280eb76f588e92e20c39999be9d2baff016c3c6bac1837b649a270570b7dd 2021-12-21T00:56:21.479Z DEBUG lightningd: Adding block 111: 02977fc9529b2ab4e0a805c4bc1bcfbff5a4e6577a8b31266341d22e204a1d27 2021-12-21T00:56:21.487Z DEBUG lightningd: Adding block 112: 2402f31c5ddfc9e847e8bbfb7df084d29a5d5d936a4358c109f2f4cf9ea8d828 2021-12-21T00:56:21.496Z DEBUG lightningd: Adding block 113: 5a561fe9423b4df33f004fc09985ee3ef38364d692a56a8b27ecbc6098a16d39 2021-12-21T00:56:21.505Z DEBUG lightningd: Adding block 114: 4502f5ec23c89177872846848848322e8fa6c3fb6f5eb361194e4cd47596dfe9 2021-12-21T00:56:21.511Z DEBUG 02f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9-gossipd: Ignoring future channel_announcment for 109x1x0 (current block 108) ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
4.0 KiB
4.0 KiB
| 1 | #include <common/cryptomsg.h> |
|---|---|
| 2 | #include <common/features.h> |
| 3 | #include <common/wireaddr.h> |
| 4 | #include <wire/peer_wire.h> |
| 5 | #include <wire/onion_wire.h> |
| 6 | # Initialize the gossip daemon. |
| 7 | msgtype,gossipd_init,3000 |
| 8 | msgdata,gossipd_init,chainparams,chainparams, |
| 9 | msgdata,gossipd_init,our_features,feature_set, |
| 10 | msgdata,gossipd_init,id,node_id, |
| 11 | msgdata,gossipd_init,rgb,u8,3 |
| 12 | msgdata,gossipd_init,alias,u8,32 |
| 13 | msgdata,gossipd_init,num_announcable,u16, |
| 14 | msgdata,gossipd_init,announcable,wireaddr,num_announcable |
| 15 | msgdata,gossipd_init,dev_gossip_time,?u32, |
| 16 | msgdata,gossipd_init,dev_fast_gossip,bool, |
| 17 | msgdata,gossipd_init,dev_fast_gossip_prune,bool, |
| 18 | msgtype,gossipd_init_reply,3100 |
| 19 | # In developer mode, we can mess with time. |
| 20 | msgtype,gossipd_dev_set_time,3001 |
| 21 | msgdata,gossipd_dev_set_time,dev_gossip_time,u32, |
| 22 | # Set artificial maximum reply_channel_range size. Master->gossipd |
| 23 | msgtype,gossipd_dev_set_max_scids_encode_size,3030 |
| 24 | msgdata,gossipd_dev_set_max_scids_encode_size,max,u32, |
| 25 | # Given a short_channel_id, return the latest (stripped) update for error msg. |
| 26 | msgtype,gossipd_get_stripped_cupdate,3010 |
| 27 | msgdata,gossipd_get_stripped_cupdate,channel_id,short_channel_id, |
| 28 | msgtype,gossipd_get_stripped_cupdate_reply,3110 |
| 29 | msgdata,gossipd_get_stripped_cupdate_reply,stripped_update_len,u16, |
| 30 | msgdata,gossipd_get_stripped_cupdate_reply,stripped_update,u8,stripped_update_len |
| 31 | # gossipd->master: we're closing this channel. |
| 32 | msgtype,gossipd_local_channel_close,3027 |
| 33 | msgdata,gossipd_local_channel_close,short_channel_id,short_channel_id, |
| 34 | # Gossipd->master get this tx output please. |
| 35 | msgtype,gossipd_get_txout,3018 |
| 36 | msgdata,gossipd_get_txout,short_channel_id,short_channel_id, |
| 37 | # master->gossipd here is the output, or empty if none. |
| 38 | msgtype,gossipd_get_txout_reply,3118 |
| 39 | msgdata,gossipd_get_txout_reply,short_channel_id,short_channel_id, |
| 40 | msgdata,gossipd_get_txout_reply,satoshis,amount_sat, |
| 41 | msgdata,gossipd_get_txout_reply,len,u16, |
| 42 | msgdata,gossipd_get_txout_reply,outscript,u8,len |
| 43 | # master -> gossipd: a potential funding outpoint was spent, please forget the eventual channel |
| 44 | msgtype,gossipd_outpoint_spent,3024 |
| 45 | msgdata,gossipd_outpoint_spent,short_channel_id,short_channel_id, |
| 46 | # master -> gossipd: stop gossip timers. |
| 47 | msgtype,gossipd_dev_suppress,3032 |
| 48 | # master -> gossipd: do you have a memleak? |
| 49 | msgtype,gossipd_dev_memleak,3033 |
| 50 | msgtype,gossipd_dev_memleak_reply,3133 |
| 51 | msgdata,gossipd_dev_memleak_reply,leak,bool, |
| 52 | # master -> gossipd: please rewrite the gossip_store |
| 53 | msgtype,gossipd_dev_compact_store,3034 |
| 54 | # gossipd -> master: ok |
| 55 | msgtype,gossipd_dev_compact_store_reply,3134 |
| 56 | msgdata,gossipd_dev_compact_store_reply,success,bool, |
| 57 | # master -> gossipd: blockheight increased. |
| 58 | msgtype,gossipd_new_blockheight,3026 |
| 59 | msgdata,gossipd_new_blockheight,blockheight,u32, |
| 60 | # gossipd: got it! |
| 61 | msgtype,gossipd_new_blockheight_reply,3126 |
| 62 | msgtype,gossipd_got_onionmsg_to_us,3145 |
| 63 | msgdata,gossipd_got_onionmsg_to_us,obs2,bool, |
| 64 | msgdata,gossipd_got_onionmsg_to_us,node_alias,pubkey, |
| 65 | msgdata,gossipd_got_onionmsg_to_us,self_id,?secret, |
| 66 | msgdata,gossipd_got_onionmsg_to_us,reply_blinding,?pubkey, |
| 67 | msgdata,gossipd_got_onionmsg_to_us,reply_first_node,?pubkey, |
| 68 | msgdata,gossipd_got_onionmsg_to_us,reply_path_len,u16, |
| 69 | msgdata,gossipd_got_onionmsg_to_us,reply_path,onionmsg_path,reply_path_len |
| 70 | msgdata,gossipd_got_onionmsg_to_us,rawmsg_len,u16, |
| 71 | msgdata,gossipd_got_onionmsg_to_us,rawmsg,u8,rawmsg_len |
| 72 | # Lightningd tells us to send an onion message. |
| 73 | msgtype,gossipd_send_onionmsg,3041 |
| 74 | msgdata,gossipd_send_onionmsg,obs2,bool, |
| 75 | msgdata,gossipd_send_onionmsg,id,node_id, |
| 76 | msgdata,gossipd_send_onionmsg,onion_len,u16, |
| 77 | msgdata,gossipd_send_onionmsg,onion,u8,onion_len |
| 78 | msgdata,gossipd_send_onionmsg,blinding,pubkey, |
| 79 | # Lightningd tells us to inject a gossip message (for addgossip RPC) |
| 80 | msgtype,gossipd_addgossip,3044 |
| 81 | msgdata,gossipd_addgossip,len,u16, |
| 82 | msgdata,gossipd_addgossip,msg,u8,len |
| 83 | # Empty string means no problem. |
| 84 | msgtype,gossipd_addgossip_reply,3144 |
| 85 | msgdata,gossipd_addgossip_reply,err,wirestring, |
| 86 | # Updated lease rates available |
| 87 | msgtype,gossipd_new_lease_rates,3046 |
| 88 | msgdata,gossipd_new_lease_rates,rates,lease_rates, |