MarcoFalke
36f42e1bf4
Merge #18037 : Util: Allow scheduler to be mocked
...
8bca30ea17cd4c1dacee28eaa27e5fa3493b021d [rpc] expose ability to mock scheduler via the rpc (Amiti Uttarwar)
7c8b6e5b5206a98f86675d0107ad99ea1d080466 [lib] add scheduler to node context (Amiti Uttarwar)
930d8375421451c8c4127608c360b0f6a0a62127 [test] add chainparams property to indicate chain allows time mocking (Amiti Uttarwar)
1cd43e83c6e8d81e950aaaede7a8a51505d0a2bc [test] unit test for new MockForward scheduler method (Amiti Uttarwar)
a6f63598adb880a75e1571aac58338c17fa7ad53 [util] allow scheduler to be mocked (Amiti Uttarwar)
Pull request description:
This PR is to support functional tests by allowing the scheduler to be mocked via the RPC.
It adds a `MockForward` method to the scheduler class that iterates through the task queue and reschedules them to be `delta_seconds` sooner.
This is currently used to support functional testing of the "unbroadcast" set tracking in #18038 . If this patch is accepted, it would also be useful to simplify the code in #16698 .
ACKs for top commit:
MarcoFalke:
ACK 8bca30ea17cd4c1dacee28eaa27e5fa3493b021d, only change is some style fixups 🕓
Tree-SHA512: 2a97fe8ade2b7fd1fb5cdfa1dcafb3227a377d7a847e3845a228bc119eb77824b4aefa43d922a06d583939b22725e223f308cf092961048079d36f6b1d9a639b
2020-02-17 17:01:50 -08:00
..
2020-01-30 17:21:21 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-28 17:00:01 +01:00
2020-01-16 15:58:35 -05:00
2019-12-30 10:42:20 +13:00
2020-01-23 16:35:08 -05:00
2020-01-28 16:59:07 +01:00
2019-12-30 10:42:20 +13:00
2020-02-17 17:01:50 -08:00
2020-01-15 02:18:00 +07:00
2019-12-30 10:42:20 +13:00
2020-02-13 08:48:07 +01:00
2020-02-17 17:01:50 -08:00
2020-01-30 17:21:21 +13:00
2019-12-30 10:42:20 +13:00
2020-02-17 17:01:50 -08:00
2020-02-09 07:44:29 -08:00
2020-02-17 11:59:23 +01:00
2020-02-17 11:59:23 +01:00
2020-02-09 05:12:43 -08:00
2019-10-14 13:24:54 +03:00
2019-12-30 10:42:20 +13:00
2020-01-02 11:05:36 -08:00
2020-01-29 13:55:43 +01:00
2020-01-29 13:55:43 +01:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-15 02:18:00 +07:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-10-16 08:56:57 -07:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-14 18:19:00 +00:00
2019-10-30 12:35:41 +01:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-02-10 12:00:10 -08:00
2020-02-13 08:59:51 -08:00
2020-02-13 08:59:51 -08:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-10-02 08:51:12 +02:00
2020-01-21 14:07:42 +00:00
2019-12-30 10:42:20 +13:00
2020-01-21 20:29:11 -08:00
2019-12-30 10:42:20 +13:00
2020-01-21 20:29:11 -08:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-11-29 21:23:25 +02:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-15 02:18:00 +07:00
2020-02-10 12:00:10 -08:00
2020-01-04 20:18:28 +02:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-08 12:35:59 +00:00
2019-12-30 10:42:20 +13:00
2020-02-17 17:01:50 -08:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-15 02:18:00 +07:00
2020-01-15 02:18:00 +07:00
2020-02-10 11:36:09 +01:00
2019-11-25 16:40:09 +01:00
2020-01-28 17:01:48 +01:00
2020-01-28 17:01:48 +01:00
2020-01-06 22:58:47 -05:00
2019-11-21 19:38:39 +01:00
2019-11-21 21:13:08 +01:00
2019-11-25 16:40:09 +01:00
2020-01-30 16:04:38 +00:00
2019-12-30 10:42:20 +13:00
2019-12-23 06:12:10 +07:00
2019-12-23 06:12:10 +07:00
2020-01-08 12:35:59 +00:00
2019-12-30 10:42:20 +13:00
2020-02-02 10:27:47 +01:00
2020-01-29 09:37:21 -05:00
2019-10-29 11:30:12 +02:00
2020-01-31 14:51:37 -08:00
2020-01-31 14:51:37 -08:00
2020-01-31 14:51:37 -08:00
2020-02-05 13:59:42 +01:00
2020-01-22 20:20:45 +01:00
2020-01-08 12:35:59 +00:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-23 16:35:08 -05:00
2020-01-23 16:35:06 -05:00
2020-02-12 17:48:30 +01:00
2019-10-02 10:39:14 -04:00
2019-12-11 17:00:27 -05:00
2020-01-29 19:39:50 +08:00
2020-01-16 18:25:11 -08:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-11-20 10:54:08 -08:00
2019-11-12 14:50:44 -08:00
2019-12-30 10:42:20 +13:00
2020-02-13 08:59:51 -08:00
2020-02-13 08:59:51 -08:00
2020-02-10 12:00:10 -08:00
2019-12-30 10:42:20 +13:00
2020-01-15 02:18:00 +07:00
2020-01-15 02:18:00 +07:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-01-15 02:18:00 +07:00
2019-12-06 10:02:08 +01:00
2020-01-08 12:35:59 +00:00
2019-12-30 10:42:20 +13:00
2020-02-10 12:00:10 -08:00
2020-01-15 02:18:00 +07:00
2020-01-14 19:30:13 -08:00
2020-02-03 11:54:34 +01:00
2020-01-15 02:18:00 +07:00
2020-01-15 02:18:00 +07:00
2020-01-23 16:35:08 -05:00
2020-01-23 16:35:08 -05:00
2020-02-06 19:08:11 -08:00
2020-02-03 12:28:38 +01:00
2020-01-15 02:18:00 +07:00
2020-01-15 02:18:00 +07:00
2020-01-15 02:18:00 +07:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00