Browse Source

cleanup

cl-refactor
Vlad Gluhovsky 10 years ago
parent
commit
16eab6d882
  1. 28
      libwhisper/BloomFilter.cpp
  2. 2
      libwhisper/WhisperPeer.cpp

28
libwhisper/BloomFilter.cpp

@ -1,28 +0,0 @@
/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file BloomFilter.cpp
* @author Vladislav Gluhovsky <vlad@ethdev.com>
* @date June 2015
*/
#include "BloomFilter.h"
using namespace std;
using namespace dev;
using namespace dev::shh;

2
libwhisper/WhisperPeer.cpp

@ -131,7 +131,7 @@ unsigned WhisperPeer::ratingForPeer(Envelope const& e) const
if (e.matchesBloomFilter(m_bloom))
rating += BloomFilterMatchReward;
rating += e.sha3().firstBitSet(); // proof of work assessment
rating += e.sha3().firstBitSet();
return rating;
}

Loading…
Cancel
Save