-
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.
Add configurable threshold on maximum anchor fee (#2816)
* Add configurable threshold on maximum anchor fee We previously bumped up to 5% of our channel balance when no HTLCs were at risk. For large channels, 5% is an unreasonably high value. In most cases it doesn't matter, because the transaction confirms before we try to bump it to unreasonable levels. But if the commitment transaction was pruned and couldn't be relayed to miners, then eclair would keep trying to bump until it reached that threshold. We now restrict this to a value configurable by the node operator. Note that when HTLCs are at risk, we still bump up to the HTLC amount, which may be higher than the new configuration parameter: we want that behavior as a scorched earth strategy against pinning attacks. * Add feerate upper bound from fee estimator We add a new limit to the feerate used for fee-bumping, based on the fastest feerate returned by our fee estimator. It doesn't make sense to use much higher values, since this feerate should guarantee that the transaction is included in the next block.
- Loading branch information
Showing
9 changed files
with
85 additions
and
27 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
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
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
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
Oops, something went wrong.