Skip to content

feat(probe): expose probe route fees in events#86

Merged
pwltr merged 1 commit into
mainfrom
feat/probe-fee
Jun 26, 2026
Merged

feat(probe): expose probe route fees in events#86
pwltr merged 1 commit into
mainfrom
feat/probe-fee

Conversation

@pwltr

@pwltr pwltr commented Jun 25, 2026

Copy link
Copy Markdown

Summary

Expose the actual route fee for Lightning probe results.

This adds route_fee_msat to ProbeSuccessful and ProbeFailed events and populates it from LDK’s Path::fee_msat(), which reports routing fees without including the delivered amount from the final hop.

Details

  • Adds route_fee_msat: Option<u64> to probe event types
  • Persists the new field with fresh TLV indexes for backwards-compatible event decoding
  • Updates the UniFFI UDL event definitions
  • Extends probe event persistence roundtrip coverage

Bindings were not regenerated in this PR.

Verification

  • cargo fmt
  • cargo test --lib probe_events_persistence_roundtrip
  • Verified by implementing in bitkit-ios

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8094ced956

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread bindings/ldk_node.udl
@pwltr

pwltr commented Jun 26, 2026

Copy link
Copy Markdown
Author

I'll generate bindings separately or in #85

@pwltr pwltr requested review from ovitrif and piotr-iohk June 26, 2026 07:45

@piotr-iohk piotr-iohk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@pwltr pwltr merged commit 224ffe4 into main Jun 26, 2026
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