mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
controlled_time: remove
We don't need it for testing at the moment, and if we do it'll have to change to relative anyway now we're going to use time_mono(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#include "controlled_time.h"
|
||||
#include "lightningd.h"
|
||||
#include "timeout.h"
|
||||
#include "utils.h"
|
||||
@@ -21,7 +20,7 @@ struct oneshot *new_reltimer_(struct lightningd_state *dstate,
|
||||
void (*cb)(void *), void *arg)
|
||||
{
|
||||
struct oneshot *t = tal(ctx, struct oneshot);
|
||||
struct timeabs expiry = timeabs_add(controlled_time(), relexpiry);
|
||||
struct timeabs expiry = timeabs_add(time_now(), relexpiry);
|
||||
|
||||
t->cb = cb;
|
||||
t->arg = arg;
|
||||
|
||||
Reference in New Issue
Block a user