rgb-cln/gossipd
Rusty Russell bbc36a7bec gossipd: update node announcement even if we change within a second.
Usually Travis triggers corner cases because it's so slow, but this
time the moons aligned, and it managed to fail test_node_reannounce
because it generated the updated node_announcement with the same
timestamp as the old one.

This is because we only updated "last_announce_timestamp" when
we generated the announcement, not when we got it off the wire or
loaded it from the gossip store.

The fix is to ask the routing code what the latest timestamp is;
we could still generate a clashing timestamp if (1) the gossip store
is lost, and (2) we restart within one second.  Hard to care.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-10-16 04:24:03 +00:00
..
test gossipd: parse and respect optional `htlc_maximum_msat` 2018-10-09 23:22:52 +00:00
Makefile hsmd: rename hsm_client_wire_csv to hsm_wire.csv 2018-09-20 09:49:39 +02:00
broadcast.c broadcast: don't leak in broadcast_del. 2018-08-24 19:54:32 +02:00
broadcast.h gossip: Have the broadcast_state track its message count 2018-06-09 13:38:46 +02:00
gossip_constants.h gossipd: parse and respect optional `htlc_maximum_msat` 2018-10-09 23:22:52 +00:00
gossip_store.c Revert "gossipd: handle premature node_announcements in the store." 2018-09-21 17:56:15 +02:00
gossip_store.csv gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_store.h gossipd: invalidate old gossip_stores. 2018-09-21 17:56:15 +02:00
gossip_wire.csv BOLT7: broadcast `htlc_maximum_msat` in `channel_update s 2018-10-16 03:32:27 +00:00
gossipd.c gossipd: update node announcement even if we change within a second. 2018-10-16 04:24:03 +00:00
routing.c gossip: reject channel_update with invalid `htlc_max_msat` 2018-10-09 23:22:52 +00:00
routing.h gossipd: use u64 for `htlc_minimum_msat` field 2018-10-09 23:22:52 +00:00