Skip to content

p2p: peer.Key() uses pubkey but pex_reactor does lookups via address #982

@ebuchman

Description

@ebuchman

Key() is pubkey: https://github.com/tendermint/tendermint/blob/master/p2p/peer.go#L212

but pex reactor uses IP: https://github.com/tendermint/tendermint/blob/master/p2p/pex_reactor.go#L267

This causes the pex to try dialing all the peers we're already connected to.

Either we change the Key() to be the address, or we store the PubKey in the address book too

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:p2pComponent: P2P pkg

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions