have verifytxoutproof check the number of txns in proof structure

This commit is contained in:
Gregory Sanders
2018-06-12 17:10:21 -04:00
parent a607d23ae8
commit ed82f17000
2 changed files with 15 additions and 4 deletions

View File

@@ -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; };
};