Skip to content

GFY 6 reason tokens and CLINK v1-only replies - #27

Merged
shocknet-justin merged 4 commits into
stagingfrom
sdk-ndebit-gfy-reason
Oct 19, 2026
Merged

shocknet-justin merged 4 commits into
stagingfrom
sdk-ndebit-gfy-reason

Conversation

@shocknet-justin

@shocknet-justin shocknet-justin commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Summary

  • NdebitFailure carries optional GFY 6 reason tokens (k1_already_processed, invoice_in_progress, invoice_already_failed, invoice_already_paid) plus the existing delta / retry_after / range fields. Match reason, not error.
  • validateNdebitData rejects k1 unless the request is a direct payment (bolt11 present, no frequency), and builders omit undefined optional fields.
  • Replies with no clink_version tag still count as v1 (legacy). Explicit "2" and mixed 1+2 tags are ignored.
  • Bump to 1.7.4.

Companion PRs: CLINK#19, Lightning.Pub#1028.

Test plan

Unit tests were not run for this PR.

…ion 1.

Legacy events with no clink_version tag still count as v1. k1 is only valid on a direct payment request.

Co-authored-by: Cursor <cursoragent@cursor.com>
@shocknet-justin shocknet-justin mentioned this pull request Sep 18, 2026
1 of 2 tasks
@shocknet-justin
shocknet-justin changed the base branch from main to staging September 18, 2026 06:05
@shocknet-justin
shocknet-justin merged commit 6125fbe into staging Oct 19, 2026
5 checks passed
@shocknet-justin
shocknet-justin deleted the sdk-ndebit-gfy-reason branch October 19, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants