Skip to content

Expiring peerstore data #3017

@achingbrain

Description

@achingbrain

The peerstore needs to be smarter about expiring old data and evicting older peers.

  • Multiaddrs should expire after a timeout - go-libp2p uses one hour
  • Peers without multiaddrs should be evicted after a period of time, perhaps six hours
  • The multiaddr removal/eviction could be done while calling .all/.get on the peerstore

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp/intermediatePrior experience is likely helpfulkind/enhancementA net-new feature or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions