swarm/pss: newhashaddressfrombytes change

This commit is contained in:
nolash 2017-06-09 20:54:58 +02:00 committed by Lewis Marshall
parent 26d7ceee1f
commit dca2fd0f0f

View file

@ -468,7 +468,8 @@ func RegisterPssProtocol(ps *Pss, topic *Topic, spec *protocols.Spec, targetprot
}
func (self *PssProtocol) Handle(msg []byte, p *p2p.Peer, senderAddr []byte) error {
hashoaddr := pot.NewHashAddressFromBytes(senderAddr).Address
//hashoaddr := pot.NewHashAddressFromBytes(senderAddr).Address
hashoaddr := pot.NewAddressFromBytes(senderAddr)
if !self.isActive(hashoaddr, *self.topic) {
rw := &PssReadWriter{
Pss: self.Pss,