feat: add optional maxFeeMsat to pay_invoice (NIP-47 max_fee) - #737
feat: add optional maxFeeMsat to pay_invoice (NIP-47 max_fee)#737frnandu wants to merge 1 commit into
Conversation
Implements the `max_fee` parameter proposed for NIP-47 pay_invoice. Also adds the `FEE_LIMIT_EXCEEDED` error code. Wallets that support the parameter will not send payments whose routing fee exceeds the budget; wallets that don't implement it ignore the parameter per spec.
|
Warning Review limit reached
Next review available in: 56 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #737 +/- ##
==========================================
- Coverage 72.44% 71.65% -0.80%
==========================================
Files 227 227
Lines 13338 13341 +3
==========================================
- Hits 9663 9559 -104
- Misses 3675 3782 +107 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Implements the
max_feeparameter proposed for NIP-47 pay_invoice. Also adds theFEE_LIMIT_EXCEEDEDerror code.Wallets that support the parameter will not send payments whose routing fee exceeds the budget; wallets that don't implement it ignore the parameter per spec.
nostr-protocol/nips#2444