Skip to content

Commit

Permalink
CCQ/Node: P2P message filter is wrong (#3547)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley authored Nov 17, 2023
1 parent efdb10e commit c9a0b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/pkg/p2p/ccq_p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ func (ccq *ccqP2p) run(
if len(ccq.allowedPeers) == 0 {
return true
}
if _, found := ccq.allowedPeers[from.String()]; found {
if _, found := ccq.allowedPeers[msg.GetFrom().String()]; found {
return true
}
ccq.logger.Info("Dropping message from unknown peer", zap.String("fromPeerID", from.String()))
ccq.logger.Info("Dropping message from unknown peer", zap.String("fromPeerID", from.String()), zap.String("msgPeerID", msg.ReceivedFrom.String()), zap.String("msgFrom", msg.GetFrom().String()))
return false
})
if err != nil {
Expand Down

0 comments on commit c9a0b0a

Please sign in to comment.