aboutsummaryrefslogtreecommitdiff
path: root/src/test/orphanage_tests.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-05-18 12:01:56 -0400
committerCarl Dong <contact@carldong.me>2022-05-20 11:57:54 -0400
commit53494bc7392591336e09d095f1fc38d63d566abf (patch)
tree1c0f673f26fc3c00509a40f263c69d7a002431e0 /src/test/orphanage_tests.cpp
parent04c31c1295eb4ecd42afd54b8e353cbda93d83f0 (diff)
validation: Have ChainstateManager own m_chainparams
We want m_chainparams to be alive for the duration of ChainstateManager's lifetime since ChainstateManager's behaviour depends on m_chainparams. We could allow for a std::shared_ptr to be passed in as m_chainparams, but that complicates things further. Given that CChainParams is not an entity class or struct, we can just copy it and have ChainstateManager own it.
Diffstat (limited to 'src/test/orphanage_tests.cpp')
0 files changed, 0 insertions, 0 deletions