Generalize the PopAnchor implementation behavior.

This commit is contained in:
Sean Bowe
2018-04-27 16:31:12 -06:00
parent 18322f074c
commit 9ea4e387b2
2 changed files with 42 additions and 7 deletions

View File

@@ -524,6 +524,15 @@ private:
* By making the copy constructor private, we prevent accidentally using it when one intends to create a cache on top of a base cache.
*/
CCoinsViewCache(const CCoinsViewCache &);
//! Generalized interface for popping anchors
template<typename Tree, typename Cache, typename CacheEntry>
void AbstractPopAnchor(
const uint256 &newrt,
ShieldedType type,
Cache &cacheAnchors,
uint256 &hash
);
};
#endif // BITCOIN_COINS_H