mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
validation: add ResetChainstates()
Necessary for the following test commit.
This commit is contained in:
parent
3a29dfbfb2
commit
00b357c215
2 changed files with 9 additions and 0 deletions
|
|
@ -5165,6 +5165,13 @@ void ChainstateManager::MaybeRebalanceCaches()
|
|||
}
|
||||
}
|
||||
|
||||
void ChainstateManager::ResetChainstates()
|
||||
{
|
||||
m_ibd_chainstate.reset();
|
||||
m_snapshot_chainstate.reset();
|
||||
m_active_chainstate = nullptr;
|
||||
}
|
||||
|
||||
ChainstateManager::~ChainstateManager()
|
||||
{
|
||||
LOCK(::cs_main);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue