diff options
author | Jim Posen <jimpo@coinbase.com> | 2018-01-23 17:32:46 -0800 |
---|---|---|
committer | Jim Posen <jim.posen@gmail.com> | 2018-08-25 10:02:37 -0700 |
commit | a4afb9cadbaecb0676e6475ab8d32a52faecb47a (patch) | |
tree | df0d824aaa7687fb97c7153ea4826e2267eaab73 /src/blockfilter.h | |
parent | cd09c7925b5af4104834971cfe072251e3ac2bda (diff) | |
download | bitcoin-a4afb9cadbaecb0676e6475ab8d32a52faecb47a.tar.xz |
blockfilter: Additional helper methods to compute hash and header.
Diffstat (limited to 'src/blockfilter.h')
-rw-r--r-- | src/blockfilter.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <typename Stream> void Serialize(Stream& s) const { s << m_block_hash |