Carl Dong
586190f0b4
rpc/rest: Take and reuse local Chain/ChainState obj
...
In all rest/rpc-related modules, if there are multiple calls to
ActiveChain{,State}(), and the calls fall under the same ::cs_main lock,
we can simply take a local reference and use/reuse it instead of calling
ActiveChain{,State}() again and again.
2021-04-14 11:17:31 -04:00
..
2021-03-18 20:37:21 +01:00
2021-03-11 13:45:14 +08:00
2021-03-17 14:56:20 +08:00
2021-04-01 10:58:53 +02:00
2021-03-29 11:52:58 +02:00
2021-04-14 11:17:31 -04:00
2021-03-23 10:51:43 -04:00
2021-04-05 11:13:51 -04:00
2021-03-31 20:17:39 +02:00
2021-04-01 15:17:15 +08:00
2021-03-11 13:45:14 +08:00
2021-03-17 17:59:22 -07:00
2021-03-17 17:59:22 -07:00
2021-03-19 20:52:16 +01:00
2021-03-23 10:51:43 -04:00
2021-03-29 23:29:42 +02:00
2021-04-01 08:35:34 -07:00
2021-04-01 08:35:34 -07:00
2021-03-11 13:45:14 +08:00
2021-03-23 11:11:02 +01:00
2021-03-23 10:51:43 -04:00
2021-03-23 10:51:43 -04:00
2021-03-29 23:29:42 +02:00
2021-03-29 23:29:42 +02:00
2021-03-19 20:52:16 +01:00
2021-03-16 13:59:18 +01:00
2021-03-16 13:59:18 +01:00
2021-03-31 20:17:39 +02:00
2021-03-29 23:29:42 +02:00
2021-03-16 10:48:36 -07:00
2021-03-29 23:29:47 +02:00
2021-03-21 22:33:27 +01:00
2021-03-29 11:12:26 +08:00
2021-03-30 10:42:45 +02:00
2021-03-31 20:17:39 +02:00
2021-04-05 11:13:51 -04:00
2021-04-05 11:13:51 -04:00
2021-04-01 16:36:22 +02:00
2021-03-20 10:24:40 +00:00
2021-04-01 11:35:27 +01:00
2021-04-01 11:35:27 +01:00
2021-03-30 17:41:13 +02:00
2021-03-30 17:41:13 +02:00
2021-03-17 14:56:20 +08:00
2021-03-29 11:08:29 +08:00
2021-04-14 11:17:31 -04:00
2021-03-15 10:41:30 +08:00
2021-03-15 10:41:30 +08:00
2021-03-11 13:45:14 +08:00
2021-03-22 11:22:06 +08:00
2021-03-18 18:43:52 +01:00
2021-03-11 13:45:14 +08:00
2021-04-01 19:12:10 +02:00
2021-03-30 13:52:22 -04:00