mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-15 11:36:00 -05: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:
parent
8bd3959fea
commit
58b7ed156d
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@ public:
|
||||||
|
|
||||||
CCoinsCacheEntry() noexcept = default;
|
CCoinsCacheEntry() noexcept = default;
|
||||||
explicit CCoinsCacheEntry(Coin&& coin_) noexcept : coin(std::move(coin_)) {}
|
explicit CCoinsCacheEntry(Coin&& coin_) noexcept : coin(std::move(coin_)) {}
|
||||||
|
~CCoinsCacheEntry()
|
||||||
|
{
|
||||||
|
ClearFlags();
|
||||||
|
}
|
||||||
|
|
||||||
//! Adding a flag also requires a self reference to the pair that contains
|
//! 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
|
//! this entry in the CCoinsCache map and a reference to the sentinel of the
|
||||||
|
|
Loading…
Add table
Reference in a new issue