hexresearch / hschain

Other
4 stars 0 forks source link

PEX specification #543

Open Shimuuar opened 4 years ago

Shimuuar commented 4 years ago

Right now we have working but very rudimentary PEX. To specify how it should work we need to answer following questions:

  1. How frequently we want to ask peers for more addresses? Is constant delay OK?
  2. How should we rank peers for trustworthiness (e.g. whether it returns good or bad addresses)? Should we do it at all?
  3. How should we remove address from list of known addresses? Nodes will go down and we don't have any mechanism
  4. How should we try to reconnect to node when connection fails? Is it job for PEX? How should we retry when initiating connection?