diff options
author | Carl Dong <contact@carldong.me> | 2022-05-18 12:01:56 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-05-20 11:57:54 -0400 |
commit | 53494bc7392591336e09d095f1fc38d63d566abf (patch) | |
tree | 1c0f673f26fc3c00509a40f263c69d7a002431e0 /src/checkqueue.h | |
parent | 04c31c1295eb4ecd42afd54b8e353cbda93d83f0 (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/checkqueue.h')
0 files changed, 0 insertions, 0 deletions