Add tests for sapling anchors

This commit is contained in:
Eirik Ogilvie-Wigley
2018-05-16 10:31:53 -06:00
parent b1d2a69908
commit 3182b4abc3
4 changed files with 143 additions and 126 deletions

View File

@@ -222,7 +222,8 @@ void CCoinsViewCache::AbstractPushAnchor(
}
}
void CCoinsViewCache::PushSproutAnchor(const ZCIncrementalMerkleTree &tree) {
template<> void CCoinsViewCache::PushAnchor(const ZCIncrementalMerkleTree &tree)
{
AbstractPushAnchor<ZCIncrementalMerkleTree, CAnchorsSproutMap, CAnchorsSproutMap::iterator, CAnchorsSproutCacheEntry>(
tree,
SPROUT,
@@ -231,7 +232,8 @@ void CCoinsViewCache::PushSproutAnchor(const ZCIncrementalMerkleTree &tree) {
);
}
void CCoinsViewCache::PushSaplingAnchor(const ZCSaplingIncrementalMerkleTree &tree) {
template<> void CCoinsViewCache::PushAnchor(const ZCSaplingIncrementalMerkleTree &tree)
{
AbstractPushAnchor<ZCSaplingIncrementalMerkleTree, CAnchorsSaplingMap, CAnchorsSaplingMap::iterator, CAnchorsSaplingCacheEntry>(
tree,
SAPLING,