-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better feerate estimation without change outputs
When asking bitcoind to fund the transaction, we always include the shared input and output in the transaction even when we're not the initiator, and later deduce the corresponding fees from our change output. But if bitcoind doesn't add a change output, we end up paying a lot more fees than the targeted feerate. In the special cases where we're responding to a liquidity ads, we don't need to include the shared input in the tx construction, which reduces the potential overpayment.
- Loading branch information
Showing
2 changed files
with
100 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 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