blockfilter: Additional helper methods to compute hash and header.

This commit is contained in:
Jim Posen
2018-01-23 17:32:46 -08:00
committed by Jim Posen
parent cd09c7925b
commit a4afb9cadb
2 changed files with 27 additions and 0 deletions

View File

@@ -106,6 +106,12 @@ public:
return m_filter.GetEncoded();
}
// Compute the filter hash.
uint256 GetHash() const;
// Compute the filter header given the previous one.
uint256 ComputeHeader(const uint256& prev_header) const;
template <typename Stream>
void Serialize(Stream& s) const {
s << m_block_hash