-
Notifications
You must be signed in to change notification settings - Fork 943
Fix fee calculations #8236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rustyrussell
merged 21 commits into
ElementsProject:master
from
rustyrussell:fix-fee-calculations
May 6, 2025
Merged
Fix fee calculations #8236
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f98bbfc
lightningd: don't attach an anchor at all if feerate already sufficient.
rustyrussell 789c72d
lightningd: return addrtype when asking wallet_can_spend.
rustyrussell 7d7ca3a
openingd: don't cast existing_htlc array to simple_htlc array.
rustyrussell 31ac3ee
hsmd: make our private utxo type, to ensure binary compatibility.
rustyrussell 92be79b
hsmd: roll the definition of simple_htlc into the csv.
rustyrussell d68cb95
hsmd: rename simple_htlc to hsm_htlc, don't gratuitously dynamically …
rustyrussell 20bc338
common/utxo: use a real type for the UTXO, not a boolean is_p2sh.
rustyrussell 332c881
wallet: make enum wallet_output_type UPPERCASE.
rustyrussell 8d591f2
lightningd: fail too-large txs *before* opening channel.
rustyrussell 989c19e
common: fix utxo_spend_weight to understand how cheap P2TR is.
rustyrussell 2d81bbc
wallet: generalize wallet_utxo_boost.
rustyrussell 3c6f734
channeld: be more accurate with the weight of commitment txs.
rustyrussell 6826281
bitcoin: fix out-by-one-error in bitcoin_tx_input_weight.
rustyrussell c415aff
anchorspend: fix weight estimation.
rustyrussell c67df3d
wallet: implement dev-finalizepsbt for testing feerates.
rustyrussell 7708272
txprepare: fix `all` amount when other amounts also specified.
rustyrussell 9d2a4ad
pytest: enhance tests to test anchor and htlc tx feerates match targets.
rustyrussell f9072be
pytest: create warning if we grind signature shorter than 71 bytes, d…
rustyrussell f6af49b
bitcoin: make input witness weight calculation explicit.
rustyrussell c32b903
pytest: fix up feerates for elements.
rustyrussell cd67ba6
pytest: fix another flake in test_zeroconf_forget.
rustyrussell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might upset VLS in a rather sneaky way: we monitor hsmd_wire.csv to get notified if any messages change. By changing the fromwire and towire implementations that the generated code uses the message changes but no indication is left of it. Can we either create a new type or append a new field instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I'll make a note and preserve the wire format!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we get rid of the old "closing info" UTXOs, we can actually ensure all the info is in the PSBT, and never send the utxos anyway.