CLN balance offer fix and makeoffer fix#2373
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdates CLN provider balance aggregation to use properly denominated fields: GetBalances now uses millisatoshi fields (TotalSpendableMsat, TotalReceivableMsat, NextMaxSpendableMsat, NextMaxReceivableMsat), GetOnchainBalance uses satoshi fields (TotalSat, ReservedSat, SpendableSat, AmountSat, PendingBalancesFromChannelClosuresSat), and MakeOffer sets OfferRequest.Amount to "any". ChangesBalance and Offer Field Denomination Updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Sorry, I think we broke this with some recent renaming. Thanks for fixing it. |
|
EDIT: we really need to fix this properly. We should only have one version in our non-API models, lnclient models should not have json properties. CC @im-adithya |
Fixes: #2361
I think these fields got deprecated between opening and merging the original CLN PR. In
gomy editor is not able to show deprecated fields for some reason...Also fixes makeoffer, it was missing the amount field which is required.
Summary by CodeRabbit