Skip to content

Tell a host when another payment blocks a request #6010

Open

Description

@romchornyi

Follow-up from #5928. A not-sent, non-retryable failure crosses the FFI as (NotSent, retryable=false) whether another payment blocks the request (InputMidBroadcast, PrivateContactRequestPending, ShieldedIdentityDebitPending, the recovery refusals) or the request itself cannot go through (CoreInsufficientFunds, InvalidParameter, WalletLocked, ...). Hosts cannot tell the two apart, so #5928 shows a neutral "Nothing was sent. This request cannot go through as it is." for both. Export the distinction from Rust (a blocked_by_pending flag next to retryable, or the recovery kind) so a host can say "wait for the earlier payment" only when that is true.

🤖 Generated with Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions