File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5165,6 +5165,13 @@ void ChainstateManager::MaybeRebalanceCaches()
5165
5165
}
5166
5166
}
5167
5167
5168
+ void ChainstateManager::ResetChainstates ()
5169
+ {
5170
+ m_ibd_chainstate.reset ();
5171
+ m_snapshot_chainstate.reset ();
5172
+ m_active_chainstate = nullptr ;
5173
+ }
5174
+
5168
5175
ChainstateManager::~ChainstateManager ()
5169
5176
{
5170
5177
LOCK (::cs_main);
Original file line number Diff line number Diff line change @@ -1051,6 +1051,8 @@ class ChainstateManager
1051
1051
// ! snapshot that is in the process of being validated.
1052
1052
bool DetectSnapshotChainstate (CTxMemPool* mempool) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
1053
1053
1054
+ void ResetChainstates () EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
1055
+
1054
1056
// ! Switch the active chainstate to one based on a UTXO snapshot that was loaded
1055
1057
// ! previously.
1056
1058
Chainstate& ActivateExistingSnapshot (CTxMemPool* mempool, uint256 base_blockhash)
You can’t perform that action at this time.
0 commit comments