Skip to content

Conversation

@coreyphillips
Copy link
Collaborator

This PR:
Adds routing fee estimation methods to Bolt11Payment for calculating Lightning routing fees:

  • estimate_routing_fees(): Calculate fees for regular invoices
  • estimate_routing_fees_using_amount(): Calculate fees for zero-amount invoices
  • Adds RouteNotFound error variant for cases where routing fails

Add estimate_routing_fees methods to Bolt11Payment for calculating Lightning routing fees

- estimate_routing_fees(): Calculate fees for regular invoices
- estimate_routing_fees_using_amount(): Calculate fees for zero-amount invoices
@coreyphillips coreyphillips self-assigned this Sep 3, 2025
@coreyphillips coreyphillips added the enhancement New feature or request label Sep 3, 2025
Copy link

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

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

Tested in bitkit-android PR:

- Reverts electrum-client version change back to 0.24.0
- Rebuilds bindings
- Updates version to 0.6.2-rc.3
- Updates bindings accordingly
@coreyphillips coreyphillips merged commit 508f038 into main Sep 4, 2025
@ovitrif ovitrif deleted the feat/routing-fee-estimation branch September 5, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants