Rusty Russell
21a6d502db
gossipd: move gossip message generation into its own file.
gossipd.c is doing too many things: this is a start.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Rusty Russell
178baeba6c
gossipd: get gossip_min_interval from lightningd.
Default is 5 x gossip interval == 5 minutes.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
trueptolemy
5361a5d059
JSON-API: `getroute` now also support `exclude` nodes
5 years ago
Rusty Russell
91072f56b0
developer: add 'dev-gossip-set-time' call to manipulate gossipd's time.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Rusty Russell
2577ad87d5
gossipd: use gossip_time_now() everywhere.
We've been slack, but it's going to be important for testing
ratelimiting. And it currently has a minor memory leak.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
lisa neigut
fe6c7f8f80
gossip queries: patch up valgrind errors in tests
These were giving me valgrind errors locally; fixed now.
5 years ago
Rusty Russell
aca2e4f722
common/memleak: add dynamic hooks for assisting memleak.
Rather than reaching into data structures, let them register their own
callbacks. This avoids us having to expose "memleak_remove_xxx"
functions, and call them manually.
Under the hood, this is done by having a specially-named tal child of
the thing we want to assist, containing the callback.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Rusty Russell
acf3952acc
JSON: remove handling of pre-Adelaide (B:T:N) short_channel_ids.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Rusty Russell
02b9b7f6e6
tests: update mocks for --enable-experimental-features builds.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Rusty Russell
855dff704c
gossipd: test crc32 routines using test vectors from PR.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Rusty Russell
51541f53d8
gossipd: test vectors for https://github.com/lightningnetwork/lightning-rfc/pull/557
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago