Skip to content

rpc: add ability to send custom errors to peer #4731

Open
@Roasbeef

Description

@Roasbeef

Since we now store the last 5 or so errors for a given peer, we should add a new command to allow users to send errors to each other, but only if they have an active channel with the other peer ideally. This can be useful for debugging purposes, as it serves as an encrypted messaging mailbox between node operators. For example, if a peer has bad uptime, you can send them a message that you're about to close out the channel to them if they get their act together. The messages should target an individual channel ID, and we should make sure that it doesn't result in a connection hang up. This is also related to the idea of adding proper error codes int o the spec as well so we can possibly programmatically handle certain classes of these errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3might get fixed, nice to haveenhancementImprovements to existing features / behaviournode-managementp2pCode related to the peer-to-peer behaviourrpcRelated to the RPC interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions