mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-10 22:13:47 +00:00
swarm/pss: newhashaddressfrombytes change
This commit is contained in:
parent
26d7ceee1f
commit
dca2fd0f0f
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
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) {
|
if !self.isActive(hashoaddr, *self.topic) {
|
||||||
rw := &PssReadWriter{
|
rw := &PssReadWriter{
|
||||||
Pss: self.Pss,
|
Pss: self.Pss,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue