You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: a refused spark repeat still pays the spending update fee #2120
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
Pay an amountless invoice whose Spark send is left held (in doubt).
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.
Activity