MarcoFalke
32b191fb66
Merge #20927 : [refactor] [net] Clean up InactivityCheck()
...
bf100f8170 [net] Cleanup InactivityChecks() and add commenting about time (John Newbery)
06fa85cd50 [net] InactivityCheck() takes a CNode reference (John Newbery)
Pull request description:
This is a pure refactor and should not change any behavior. It clarifies and documents the InactivityCheck() function
This makes #20721 easier to review. In particular, this function uses a mixture of (unmockable) system time and mockable time. It's important to understand where those are being used when reviewing #20721 .
#20721 doesn't require this change, so if others don't agree that it's useful and makes review easier, then I'm happy to close this and just do #20721 directly.
ACKs for top commit:
fanquake:
ACK bf100f8170
MarcoFalke:
review ACK bf100f8170 💫
Tree-SHA512: 7b001de2a5fbe8a6dc37baeae930db5775290afb2e8a6aecdf13161f1e5b06ef813bc6291d8ee5cefcf1e430c955ea702833a8db84192eebe6e6acf0b9304cb2
2021-01-22 13:13:00 +01:00
..
2021-01-07 17:57:17 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-08 19:26:30 +01:00
2021-01-07 17:57:17 +01:00
2021-01-13 08:49:17 +01:00
2021-01-07 18:07:09 +02:00
2021-01-07 18:07:09 +02:00
2021-01-03 18:38:31 +01:00
2020-12-31 09:45:41 +01:00
2021-01-21 18:54:19 +01:00
2021-01-15 22:48:15 +01:00
2021-01-13 08:49:17 +01:00
2021-01-04 12:23:16 +08:00
2021-01-21 18:48:03 +01:00
2020-11-19 15:48:24 +01:00
2021-01-21 18:48:03 +01:00
2021-01-21 18:48:03 +01:00
2021-01-22 12:58:47 +08:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-06 18:44:31 +00:00
2020-11-19 16:30:54 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-11-18 12:00:57 -05:00
2021-01-05 21:31:48 +01:00
2020-11-18 12:00:57 -05:00
2020-12-10 11:12:08 +01:00
2021-01-12 18:34:25 +10:00
2021-01-18 18:33:24 +01:00
2020-11-18 12:00:57 -05:00
2020-12-17 20:36:41 +01:00
2020-11-18 12:00:57 -05:00
2020-12-15 17:21:06 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-15 14:12:01 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2021-01-13 08:49:17 +01:00
2020-12-31 09:45:41 +01:00
2021-01-04 12:31:31 +08:00
2021-01-04 12:31:31 +08:00
2020-12-31 09:45:41 +01:00
2021-01-04 12:23:16 +08:00
2020-12-31 09:45:41 +01:00
2021-01-15 22:48:15 +01:00
2021-01-15 22:48:15 +01:00
2021-01-04 12:23:16 +08:00
2020-12-31 09:45:41 +01:00
2020-11-23 21:02:54 +00:00
2020-12-31 09:45:41 +01:00
2021-01-09 23:27:45 +10:00
2020-12-06 00:22:40 +00:00
2021-01-05 10:10:50 +01:00
2021-01-04 12:23:16 +08:00
2020-12-06 18:44:25 +00:00
2020-12-06 18:44:25 +00:00
2021-01-21 10:57:31 -05:00
2021-01-07 18:07:09 +02:00
2020-12-08 19:26:30 +01:00
2021-01-21 18:54:19 +01:00
2021-01-07 18:07:09 +02:00
2021-01-07 19:41:55 +01:00
2021-01-07 18:07:09 +02:00
2021-01-07 18:07:09 +02:00
2021-01-04 12:31:31 +08:00
2020-12-31 09:45:41 +01:00
2020-12-06 18:44:25 +00:00
2020-12-06 18:44:25 +00:00
2020-12-31 09:45:41 +01:00
2021-01-13 09:48:06 +01:00
2021-01-09 23:27:45 +10:00
2021-01-19 10:50:36 +00:00
2021-01-19 10:50:36 +00:00
2021-01-10 15:51:15 +01:00
2021-01-11 11:27:47 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2021-01-03 18:37:59 +01:00
2021-01-03 18:37:59 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-19 09:45:39 +01:00
2020-11-26 09:05:59 +00:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-08 16:47:36 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-11-25 15:18:33 +01:00
2020-12-31 09:45:41 +01:00
2020-12-10 20:46:29 +02:00
2021-01-12 15:56:19 +08:00
2020-12-31 09:45:41 +01:00
2020-12-01 18:36:39 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2021-01-20 16:15:03 -05:00
2021-01-20 16:15:03 -05:00
2020-12-01 18:36:39 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2021-01-12 02:27:09 -08:00
2021-01-13 08:49:17 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00