mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01:00
coins: call ClearFlags in CCoinsCacheEntry destructor
No behavior change. Prepares for flags adding CCoinsCacheEntrys to a linked list which need to be removed on destruction.
This commit is contained in:
@@ -136,6 +136,10 @@ public:
|
||||
|
||||
CCoinsCacheEntry() noexcept = default;
|
||||
explicit CCoinsCacheEntry(Coin&& coin_) noexcept : coin(std::move(coin_)) {}
|
||||
~CCoinsCacheEntry()
|
||||
{
|
||||
ClearFlags();
|
||||
}
|
||||
|
||||
//! Adding a flag also requires a self reference to the pair that contains
|
||||
//! this entry in the CCoinsCache map and a reference to the sentinel of the
|
||||
|
||||
Reference in New Issue
Block a user