diff options
author | Carl Dong <contact@carldong.me> | 2021-04-12 21:34:42 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-04-14 11:17:31 -0400 |
commit | 586190f0b4740457cb86cba632e3d64e6dfe9b0c (patch) | |
tree | 667f7c58a4c5c3d844fe22c279252010575d81da /src/test/fuzz/tx_pool.cpp | |
parent | bc3bd369027273278a0541f3b991eb71de831aa2 (diff) |
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.
Diffstat (limited to 'src/test/fuzz/tx_pool.cpp')
0 files changed, 0 insertions, 0 deletions