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>
This commit is contained in:
Rusty Russell
2019-09-12 09:52:12 +09:30
parent 9aca38b279
commit 2577ad87d5
6 changed files with 23 additions and 12 deletions

View File

@@ -273,7 +273,7 @@ struct routing_state *new_routing_state(const tal_t *ctx,
const struct node_id *local_id,
u32 prune_timeout,
struct list_head *peers,
const u32 *dev_gossip_time);
const u32 *dev_gossip_time TAKES);
/**
* Add a new bidirectional channel from id1 to id2 with the given