File tree Expand file tree Collapse file tree 3 files changed +1
-15
lines changed Expand file tree Collapse file tree 3 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,6 @@ ChainTestingSetup::~ChainTestingSetup()
183
183
WITH_LOCK (::cs_main, UnloadBlockIndex (m_node.mempool .get (), *m_node.chainman ));
184
184
m_node.mempool .reset ();
185
185
m_node.scheduler .reset ();
186
- m_node.chainman ->Reset ();
187
186
m_node.chainman .reset ();
188
187
}
189
188
Original file line number Diff line number Diff line change @@ -5009,15 +5009,6 @@ void ChainstateManager::Unload()
5009
5009
m_best_invalid = nullptr ;
5010
5010
}
5011
5011
5012
- void ChainstateManager::Reset ()
5013
- {
5014
- LOCK (::cs_main);
5015
- m_ibd_chainstate.reset ();
5016
- m_snapshot_chainstate.reset ();
5017
- m_active_chainstate = nullptr ;
5018
- m_snapshot_validated = false ;
5019
- }
5020
-
5021
5012
void ChainstateManager::MaybeRebalanceCaches ()
5022
5013
{
5023
5014
if (m_ibd_chainstate && !m_snapshot_chainstate) {
Original file line number Diff line number Diff line change @@ -985,17 +985,13 @@ class ChainstateManager
985
985
// ! Unload block index and chain data before shutdown.
986
986
void Unload () EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
987
987
988
- // ! Clear (deconstruct) chainstate data.
989
- void Reset ();
990
-
991
988
// ! Check to see if caches are out of balance and if so, call
992
989
// ! ResizeCoinsCaches() as needed.
993
990
void MaybeRebalanceCaches () EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
994
991
995
992
~ChainstateManager () {
996
993
LOCK (::cs_main);
997
- UnloadBlockIndex (/* mempool */ nullptr , *this );
998
- Reset ();
994
+ UnloadBlockIndex (/* mempool=*/ nullptr , *this );
999
995
}
1000
996
};
1001
997
You can’t perform that action at this time.
0 commit comments