Skip to content

Expose on-chain transaction classification over gRPC - #271

Open
elnafateh wants to merge 1 commit into
lightningdevkit:mainfrom
elnafateh:expose-transaction-type
Open

Expose on-chain transaction classification over gRPC#271
elnafateh wants to merge 1 commit into
lightningdevkit:mainfrom
elnafateh:expose-transaction-type

Conversation

@elnafateh

@elnafateh elnafateh commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Closes #251 (last item).

Adds TransactionType (7-variant oneof: Funding, CooperativeClose, UnilateralClose, AnchorBump, Claim, Sweep, InteractiveFunding) mirroring ldk-node's own type, plus a shared TransactionChannel ref message. Wired into Onchain.tx_type.

Unit-tested in proto_adapter.rs, not e2e, because list-payments only surfaces payments tied to an Event, and there's no event for wallet-classified on-chain payments, so this data doesn't reach list-payments today regardless of this PR. Happy to open a follow-up for that if useful (pick this up in ldk-node)

@ldk-reviews-bot

ldk-reviews-bot commented Sep 3, 2026

Copy link
Copy Markdown

I've assigned @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@benthecarman

Copy link
Copy Markdown
Collaborator

Ci failing

@elnafateh

Copy link
Copy Markdown
Contributor Author

Ci failing

thanks, am on it

@elnafateh
elnafateh force-pushed the expose-transaction-type branch from 8280d66 to 6590329 Compare September 3, 2026 13:31
// The classification of an on-chain transaction, mirroring LDK's
// `lightning::chain::chaininterface::TransactionType`.
message TransactionType {
oneof type {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this forces us to do r#type, can we rename to kind

}

// The classification of an on-chain transaction, mirroring LDK's
// `lightning::chain::chaininterface::TransactionType`.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is mirroring ldk_node::payment::TransactionType

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.

Expose LDK Node data currently dropped at the gRPC boundary

3 participants