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:
Rusty Russell
2016-11-09 18:54:15 +10:30
parent c5de5d4c39
commit 4bed6c8c67
12 changed files with 2 additions and 116 deletions

View File

@@ -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;