Auto merge of #3258 - Eirik0:3056-anchor-test-cases, r=str4d

Add tests for sapling anchors

Closes #3253
This commit is contained in:
Homu
2018-06-19 09:28:20 -07:00
4 changed files with 159 additions and 126 deletions

View File

@@ -478,13 +478,9 @@ public:
CNullifiersMap &mapSaplingNullifiers);
// Adds the tree to mapSproutAnchors and sets the current commitment
// root to this root.
void PushSproutAnchor(const ZCIncrementalMerkleTree &tree);
// Adds the tree to mapSaplingAnchors and sets the current commitment
// root to this root.
void PushSaplingAnchor(const ZCSaplingIncrementalMerkleTree &tree);
// Adds the tree to mapSproutAnchors (or mapSaplingAnchors based on the type of tree)
// and sets the current commitment root to this root.
template<typename Tree> void PushAnchor(const Tree &tree);
// Removes the current commitment root from mapAnchors and sets
// the new current root.