diff --git a/src/validation.cpp b/src/validation.cpp index 8cdfd8f223..1a4fec2e48 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -6288,7 +6288,6 @@ ChainstateManager::~ChainstateManager() for (Chainstate* chainstate : GetAll()) { if (chainstate->CanFlushToDisk()) { chainstate->ForceFlushStateToDisk(); - chainstate->ResetCoinsViews(); } } diff --git a/src/validation.h b/src/validation.h index 723babca31..b0926cee99 100644 --- a/src/validation.h +++ b/src/validation.h @@ -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; }