From 9c51074e0b66dd66f2dd2cfcafee09c0d46a92ad Mon Sep 17 00:00:00 2001 From: Vlad Gluhovsky Date: Sun, 21 Jun 2015 20:19:15 +0200 Subject: [PATCH] updates --- libwhisper/Common.h | 4 ++-- libwhisper/WhisperPeer.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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; }; }