Skip to content

Be specific about error handling for methods that don't return state transitions #1422

Description

@spacebear21

Inspired by discussion in: lightningdevkit/ldk-node#746 (comment)

create_poll_request and create_post_request failures are all fatal and should always result in terminating the session and broadcasting the fallback.

try_preserving_privacy and contribute_inputs are conditionally retryable (can't succeed with the same input set, but may succeed with a different input set) and the appropriate reaction is an implementation consideration.

None of these return state transition types with "fatal" vs. "transient" error distinction, so the proper handling is not obvious to implementers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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