diff --git a/src/zcash/IncrementalMerkleTree.hpp b/src/zcash/IncrementalMerkleTree.hpp index 912e9fff0..1e4c8ac85 100644 --- a/src/zcash/IncrementalMerkleTree.hpp +++ b/src/zcash/IncrementalMerkleTree.hpp @@ -170,6 +170,10 @@ public: return tree.last(); } + uint64_t position() const { + return tree.size() - 1; + } + Hash root() const { return tree.root(Depth, partial_path()); }