aboutsummaryrefslogtreecommitdiff
path: root/src/merkleblock.h
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2018-06-12 17:10:21 -0400
committerGregory Sanders <gsanders87@gmail.com>2018-06-14 09:54:41 -0400
commited82f1700006830b6fe34572b66245c1487ccd29 (patch)
tree66efe0c8b9c3973bda3a9915f6623290ee46e459 /src/merkleblock.h
parenta607d23ae82ee374799d21d02932d945c1ce9616 (diff)
have verifytxoutproof check the number of txns in proof structure
Diffstat (limited to 'src/merkleblock.h')
-rw-r--r--src/merkleblock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/merkleblock.h b/src/merkleblock.h
index 0976e21c3a..984e33a961 100644
--- a/src/merkleblock.h
+++ b/src/merkleblock.h
@@ -115,6 +115,12 @@ public:
* returns the merkle root, or 0 in case of failure
*/
uint256 ExtractMatches(std::vector<uint256> &vMatch, std::vector<unsigned int> &vnIndex);
+
+ /** Get number of transactions the merkle proof is indicating for cross-reference with
+ * local blockchain knowledge.
+ */
+ unsigned int GetNumTransactions() const { return nTransactions; };
+
};