fix: set outgoingPeerBlocklist and incomingPeerBlockList correctly

This commit is contained in:
Derrick Hammer 2024-01-15 10:59:45 -05:00
parent b9bf531663
commit 3f0af1587b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -225,7 +225,8 @@ func (p *P2PImpl) ConnectToNode(connectionUris []*url.URL, retried bool, fromPee
if err != nil {
return err
}
p.incomingPeerBlockList.Put(idString, fromPeerId)
p.outgoingPeerBlocklist.Put(fromPeerId, true)
p.incomingPeerBlockList.Put(idString, true)
err = fromPeer.End()
if err != nil {
return err