mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 19:37:27 -03:00
validation: Remove ResetCoinsViews
Now that its only callsite has been moved to the destructor, let the smart pointer do its thing.
This commit is contained in:
parent
9bf6df763d
commit
cd618e2020
2 changed files with 0 additions and 4 deletions
|
@ -6288,7 +6288,6 @@ ChainstateManager::~ChainstateManager()
|
|||
for (Chainstate* chainstate : GetAll()) {
|
||||
if (chainstate->CanFlushToDisk()) {
|
||||
chainstate->ForceFlushStateToDisk();
|
||||
chainstate->ResetCoinsViews();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -639,9 +639,6 @@ public:
|
|||
return Assert(m_coins_views)->m_catcherview;
|
||||
}
|
||||
|
||||
//! Destructs all objects related to accessing the UTXO set.
|
||||
void ResetCoinsViews() { m_coins_views.reset(); }
|
||||
|
||||
//! Does this chainstate have a UTXO set attached?
|
||||
bool HasCoinsViews() const { return (bool)m_coins_views; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue