msggen: new rust types for sat and sat_or_all#9275
Open
daywalker90 wants to merge 1 commit into
Open
Conversation
99ca019 to
ff31879
Compare
nepet
approved these changes
Jul 3, 2026
ff31879 to
128710c
Compare
Collaborator
Author
|
CI found an integration test that fails with this change: So i fixed: test_lsps2_buyjitchannel_mpp_fixed_invoice
- amount_msat=f"{amt}msat",
+ amount_msat=amt,This tests is quite new and i hope on the other end no one is using msat suffixes anymore?! |
128710c to
37e7fed
Compare
sat and sat_or_all
Collaborator
Author
|
I have reworked this PR to introduce a new rust type for satoshi unit amounts. See the linked issue for an explanation. |
Also stop serializing amounts as string with msat suffix in cln-rpc and serialize them as a raw number instead, like CLN does it Changelog-None
37e7fed to
4c08cba
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Drop conversion to string and instead implement DisplayChangelog-None