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:
Rusty Russell
2025-11-13 15:42:31 +10:30
parent 806dc89cad
commit 522457a12b
13 changed files with 20 additions and 20 deletions

View File

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