connectd, gossipd, pay, bcli: use timemono when solely measuring duration for timeouts.
This is immune to things like clock changes, and has the convenient side-effect that it will *not* be overridden when we override time for developer purposes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -200,7 +200,7 @@ struct payment {
|
||||
u32 start_block;
|
||||
|
||||
struct timeabs start_time, end_time;
|
||||
struct timeabs deadline;
|
||||
struct timemono deadline;
|
||||
|
||||
/* Constraints the state machine and modifiers needs to maintain. */
|
||||
struct payment_constraints constraints;
|
||||
|
||||
Reference in New Issue
Block a user