rgb-cln/gossipd
Rusty Russell 8fcb45c1b2 routing: use marshalled short_channel_id, not string as tag for channel_announce
We use this technique for the other tags, so use it here too.

This was drawn to my attention when I made more than 10 channels in a
block, and the string changed length:

 Valgrind error file: valgrind-errors.31415
==31415== Conditional jump or move depends on uninitialised value(s)
==31415==    at 0x4C35E20: bcmp (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31415==    by 0x11A624: queue_broadcast (broadcast.c:40)
==31415==    by 0x118D93: handle_pending_cannouncement (routing.c:704)
==31415==    by 0x1109E3: handle_txout_reply (gossip.c:1796)
==31415==    by 0x111177: recv_req (gossip.c:1955)
==31415==    by 0x136723: next_plan (io.c:59)
==31415==    by 0x137220: do_plan (io.c:387)
==31415==    by 0x13725E: io_ready (io.c:397)
==31415==    by 0x138B97: io_loop (poll.c:305)
==31415==    by 0x111352: main (gossip.c:2022)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-02-01 12:20:15 +01:00
..
test gossipd: Add handling of channel_update to routing failures. 2018-02-01 00:46:06 +00:00
Makefile gossipd: Implement `gossip_routing_failure` for master to report routing failures. 2018-02-01 00:46:06 +00:00
broadcast.c gossip: Fix a memcmp with unset memory in broadcast queue 2018-01-14 23:40:04 +00:00
broadcast.h routing: Add tracking of eviction for broadcasts 2017-12-22 15:47:17 +01:00
gossip.c gossipd: Add handling of channel_update to routing failures. 2018-02-01 00:46:06 +00:00
gossip_wire.csv gossipd: Add handling of channel_update to routing failures. 2018-02-01 00:46:06 +00:00
handshake.c gossip: Remove HSM_FD from handshake 2017-12-17 02:44:20 +00:00
handshake.h ipaddr: rename to wireaddr. 2017-10-26 21:01:09 +00:00
routing.c routing: use marshalled short_channel_id, not string as tag for channel_announce 2018-02-01 12:20:15 +01:00
routing.h gossipd: Add handling of channel_update to routing failures. 2018-02-01 00:46:06 +00:00