go-algorand icon indicating copy to clipboard operation
go-algorand copied to clipboard

network: allow multi-role phonebook entries

Open algorandskiy opened this issue 5 months ago • 1 comments

Summary

  1. Allowed a single phonebook entry to have multiple roles
    • P2P node can advertise both gossip and archival capabilities
    • The existing implementation did not support that but it was not an issue because (2) below
  2. Moved DHT operations to meshThread from GetPeers:
    • To have all DHT ops in one place
    • To have GeetPeers be non-network query dependent

Test Plan

Added unit tests for multi roles peers in phonebook and peerstore wrapper.

algorandskiy avatar Sep 13 '24 21:09 algorandskiy