aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/pss/pss.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/pss/pss.go')
-rw-r--r--swarm/pss/pss.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/pss/pss.go b/swarm/pss/pss.go
index b55c97fdd..b96649fea 100644
--- a/swarm/pss/pss.go
+++ b/swarm/pss/pss.go
@@ -448,7 +448,7 @@ func (p *Pss) isSelfRecipient(msg *PssMsg) bool {
// test match of leftmost bytes in given message to node's Kademlia address
func (p *Pss) isSelfPossibleRecipient(msg *PssMsg) bool {
local := p.Kademlia.BaseAddr()
- return bytes.Equal(msg.To[:], local[:len(msg.To)])
+ return bytes.Equal(msg.To, local[:len(msg.To)])
}
/////////////////////////////////////////////////////////////////////