diff --git a/libwhisper/Common.h b/libwhisper/Common.h index 71435603e..a7b3c7800 100644 --- a/libwhisper/Common.h +++ b/libwhisper/Common.h @@ -54,8 +54,8 @@ enum WhisperPacket { StatusPacket = 0, MessagesPacket, - AddFilterPacket, - RemoveFilterPacket, + AddTopicFilterPacket, + RemoveTopicFilterPacket, PacketCount }; diff --git a/libwhisper/WhisperPeer.h b/libwhisper/WhisperPeer.h index 5cb124568..ddaf70aca 100644 --- a/libwhisper/WhisperPeer.h +++ b/libwhisper/WhisperPeer.h @@ -60,6 +60,8 @@ public: WhisperHost* host() const; + void setBloom(FixedHash const& _b) { m_bloom = _b; } + private: virtual bool interpret(unsigned _id, RLP const&) override; @@ -72,6 +74,8 @@ private: std::multimap m_unseen; ///< Rated according to what they want. std::chrono::system_clock::time_point m_timer = std::chrono::system_clock::now(); + + FixedHash m_bloom; }; }