Generalize the PushAnchor implementation behavior.

This commit is contained in:
Sean Bowe
2018-04-27 16:52:33 -06:00
parent 9ea4e387b2
commit 7703a673ea
2 changed files with 31 additions and 6 deletions

View File

@@ -533,6 +533,15 @@ private:
Cache &cacheAnchors,
uint256 &hash
);
//! Generalized interface for pushing anchors
template<typename Tree, typename Cache, typename CacheIterator, typename CacheEntry>
void AbstractPushAnchor(
const Tree &tree,
ShieldedType type,
Cache &cacheAnchors,
uint256 &hash
);
};
#endif // BITCOIN_COINS_H