|
@ -82,8 +82,8 @@ void WhisperHost::inject(Envelope const& _m, WhisperPeer* _p) |
|
|
// TODO p2p: capability-based rating
|
|
|
// TODO p2p: capability-based rating
|
|
|
for (auto i: peerSessions()) |
|
|
for (auto i: peerSessions()) |
|
|
{ |
|
|
{ |
|
|
auto w = i.first->cap<WhisperPeer>(); |
|
|
auto w = i.first->cap<WhisperPeer>().get(); |
|
|
if (w.get() == _p) |
|
|
if (w == _p) |
|
|
w->addRating(1); |
|
|
w->addRating(1); |
|
|
else |
|
|
else |
|
|
w->noteNewMessage(h, _m); |
|
|
w->noteNewMessage(h, _m); |
|
|