Rusty Russell
9450d46db1
bitcoin/short_channel_id: pass by copy everywhere.
...
It's a u64, we should pass by copy. This is a big sweeping change,
but mainly mechanical (change one, compile, fix breakage, repeat).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-03-20 13:51:48 +10:30
Rusty Russell
1f9e9777f0
lightningd: don't generate node_announcements with identical timestamps.
...
This caused a flake in test_gossip_lease_rates, since the peer would ignore
the node_announcement due to duplicate timestamps!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-01-31 14:47:33 +10:30
Rusty Russell
9f05250ee7
lightingd: corrections from Alex Myers's review.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-01-31 14:47:33 +10:30
Rusty Russell
48b9b6a05c
lightningd: add routines to generate node_announcement.
...
This is currently still done in gossipd, but we should generate it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-01-31 14:47:33 +10:30
Rusty Russell
3508331fc4
lightningd: check channel_announcement signatures we get from peer.
...
We hoise check_signed_hash_nodeid from gossipd's internals, into common/.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-01-31 14:47:33 +10:30
Rusty Russell
c5547e2209
lightningd: add gossip_generation.c
...
Routines to generate our own channel_update and channel_announcement messages.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-01-31 14:47:33 +10:30