aboutsummaryrefslogtreecommitdiff
path: root/build_msvc
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-04-12 21:34:42 -0400
committerCarl Dong <contact@carldong.me>2021-04-14 11:17:31 -0400
commit586190f0b4740457cb86cba632e3d64e6dfe9b0c (patch)
tree667f7c58a4c5c3d844fe22c279252010575d81da /build_msvc
parentbc3bd369027273278a0541f3b991eb71de831aa2 (diff)
downloadbitcoin-586190f0b4740457cb86cba632e3d64e6dfe9b0c.tar.xz
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 'build_msvc')
0 files changed, 0 insertions, 0 deletions