Skip to content

Always start as DHT Client and switch to DHT Server after 48 hours #9045

Open
@RubenKelevra

Description

@RubenKelevra

Checklist

  • My issue is specific & actionable.
  • I am not suggesting a protocol enhancement.
  • I have searched on the issue tracker for my issue.

Description

Currently, all newly started nodes do advertise as DHT Server if they can handle incoming connections.

A lot of computers are used just for a couple of hours and then restarted, put into standby or have longer outages of their internet connection.

I think go-ipfs should start a timer on startup and if there's a connection outage for more than 10 minutes, a standby event etc. the timer will be reset.

Once 48 hours are reached, the node switches to the current 'dht' setting which will decide if the node can handle incoming connections etc. and then may switch to the server profile.

This will eliminate the efforts to push data to nodes which are not capable of holding data for longer periods of time available on their network, but recover them after two days, if there's for example a connection outage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right nowhelp wantedSeeking public contribution on this issuekind/enhancementA net-new feature or improvement to an existing featureneed/analysisNeeds further analysis before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions