diff --git a/src/zcash/IncrementalMerkleTree.cpp b/src/zcash/IncrementalMerkleTree.cpp index d59e707fa..f8fafb31a 100644 --- a/src/zcash/IncrementalMerkleTree.cpp +++ b/src/zcash/IncrementalMerkleTree.cpp @@ -45,9 +45,6 @@ public: template EmptyMerkleRoots PathFiller::emptyroots; -template -EmptyMerkleRoots IncrementalMerkleTree::emptyroots; - template void IncrementalMerkleTree::wfcheck() const { if (parents.size() >= Depth) { diff --git a/src/zcash/IncrementalMerkleTree.hpp b/src/zcash/IncrementalMerkleTree.hpp index 9fa2336cc..fd7c61518 100644 --- a/src/zcash/IncrementalMerkleTree.hpp +++ b/src/zcash/IncrementalMerkleTree.hpp @@ -216,6 +216,9 @@ public: static SHA256Compress combine(const SHA256Compress& a, const SHA256Compress& b); }; +template +EmptyMerkleRoots IncrementalMerkleTree::emptyroots; + } // end namespace `libzcash` typedef libzcash::IncrementalMerkleTree ZCIncrementalMerkleTree;