From a4afb9cadbaecb0676e6475ab8d32a52faecb47a Mon Sep 17 00:00:00 2001 From: Jim Posen Date: Tue, 23 Jan 2018 17:32:46 -0800 Subject: blockfilter: Additional helper methods to compute hash and header. --- src/blockfilter.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/blockfilter.h') diff --git a/src/blockfilter.h b/src/blockfilter.h index 010f868aee..46833ac0be 100644 --- a/src/blockfilter.h +++ b/src/blockfilter.h @@ -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 void Serialize(Stream& s) const { s << m_block_hash -- cgit v1.2.3