Skip to content

test: cover node-only channel moves never falling back to spark #2230

Backlog

Description

@ovitrif

payInvoiceOverLdk in LightningRepo promises never to fall back to Spark, which moving a channel balance needs, and MoveToSparkRepo relies on that. Its only test, a move to spark is recorded under its payment hash so it can be trimmed once paid, covers the success path. If a later change routed this entry through payInvoiceChecked, a channel-to-Spark move could be paid from Spark itself and no test would catch it.

The removed test a node-only payment fails instead of falling back to spark (deleted with payInvoiceWithNode in #2229) can move over to payInvoiceOverLdk("bolt11", paymentHash = "h", sats = 1_000uL, maxTotalRoutingFeeMsat = null) with its stubs unchanged.

Raised in #2229 (comment).

Activity

  1. added theissue type on Dec 1, 2026
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions