Skip to content

API for regular pings #345

Closed
Closed
@TheBlueMatt

Description

@TheBlueMatt

In general, lightning nodes should constantly be pinging their peers to ensure connectivity and ensure that we have a peer marked disconnected before we get a payment to route through them that gets stuck. This will require:

  • Some general API in peer_handler that indicates a timer tick (doesn't have to be that often, just enough to quantize pings and make sure we get pongs back by the next tick).
  • A regular ping generation,
  • Disconnecting a peer if no pong is heard by the next timer tick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions