xmr-rs / xmr

Monero node.
Apache License 2.0
30 stars 9 forks source link

Don't use `PeerId` in the `Peers` container as the index. #12

Closed jeandudey closed 6 years ago

jeandudey commented 6 years ago

A custom type should serve for this purpose and not the ID of the peer, using the ID could create an possible attack where other nodes use the ID of others nodes and overwrite them in the Peers container.