-
Notifications
You must be signed in to change notification settings - Fork 72
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
Allow honoring reserve in send_all_to_address
#345
Open
tnull
wants to merge
9
commits into
lightningdevkit:main
Choose a base branch
from
tnull:2024-08-regard-reserve-spending-all
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Allow honoring reserve in send_all_to_address
#345
tnull
wants to merge
9
commits into
lightningdevkit:main
from
tnull:2024-08-regard-reserve-spending-all
Commits on Aug 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7202c83 - Browse repository at this point
Copy the full SHA 7202c83View commit details -
Refactor
FeeEstimator
to introduce local target variants.. previously we used LDK's `FeeEstimator` and `ConfirmationTarget` and ~misused some of the latter's variants for our non-Lightning operations. Here, we introduce our own `FeeEstimator` and `ConfirmationTarget` allowing to add specific variants for `ChannelFunding` and `OnchainPayment`s, for example.
Configuration menu - View commit details
-
Copy full SHA for bf4655a - Browse repository at this point
Copy the full SHA bf4655aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b1ea5a - Browse repository at this point
Copy the full SHA 9b1ea5aView commit details -
Log HTTP 400 at
TRACE
instead of ignoring it.. while it's most often bitcoind already knowing about a transaction already, the error sometimes holds additional information (e.g., not meeting the mempool min).
Configuration menu - View commit details
-
Copy full SHA for 01c499e - Browse repository at this point
Copy the full SHA 01c499eView commit details -
Allow honoring reserve in
send_all_to_address
Previously, `OnchainPayment::send_all_to_address` could only be used to fully drain the onchain wallet, i.e., would not retain any reserves. Here, we try to introduce a `retain_reserves` bool that allows users to send all funds while honoring the configured on-chain reserves. While we're at it, we move the reserve checks for `send_to_address` also to the internal wallet's method, which makes the checks more accurate as they now are checked against the final transaction value, including transaction fees.
Configuration menu - View commit details
-
Copy full SHA for 0223698 - Browse repository at this point
Copy the full SHA 0223698View commit details -
Configuration menu - View commit details
-
Copy full SHA for e86d843 - Browse repository at this point
Copy the full SHA e86d843View commit details -
f Make sure transaction is relayable
.. rather than undercutting the fee, we now choose a method that might slightly overestimate fees, ensuring its relayability. We also make sure the net fee is always larger than the fee rate floor.
Configuration menu - View commit details
-
Copy full SHA for 326cc38 - Browse repository at this point
Copy the full SHA 326cc38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 156a970 - Browse repository at this point
Copy the full SHA 156a970View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0f8d6c - Browse repository at this point
Copy the full SHA b0f8d6cView commit details
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.