Skip to content

bug: a refused spark repeat still pays the spending update fee #2120

Backlog

Description

@ovitrif

A repeat of an amountless invoice at another amount, while its first Spark attempt is held, can move the channels' balance to Spark and pay the update fee before Spark refuses the repeat.

Steps

  1. Pay an amountless invoice whose Spark send is left held (in doubt).
  2. Pay the same invoice again at a larger amount that needs both the channels and Spark, and approve the spending balance update.

Expected

The repeat is refused before anything moves.

Actual

AppViewModel runs the approved update first. The update fee is paid, and the emptied channels are scheduled to close. Then SparkRepo.payInvoice refuses the repeat because the kept attempt has another amount.

Found in @pwltr's review of #2071 (#2071 (review)).

Activity

  1. added this to the 3.3.0 milestone on Nov 26, 2026
  2. added theissue type on Nov 26, 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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions