-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Set Commitment fee_per_kw for a New Channel #687
Copy link
Copy link
Closed
Labels
P3might get fixed, nice to havemight get fixed, nice to havechannelscommitmentsCommitment transactions containing the state of the channelCommitment transactions containing the state of the channelenhancementImprovements to existing features / behaviourImprovements to existing features / behaviourfeature requestRequests for new featuresRequests for new featuresfundingRelated to the opening of new channels with funding transactions on the blockchainRelated to the opening of new channels with funding transactions on the blockchain
Metadata
Metadata
Assignees
Labels
P3might get fixed, nice to havemight get fixed, nice to havechannelscommitmentsCommitment transactions containing the state of the channelCommitment transactions containing the state of the channelenhancementImprovements to existing features / behaviourImprovements to existing features / behaviourfeature requestRequests for new featuresRequests for new featuresfundingRelated to the opening of new channels with funding transactions on the blockchainRelated to the opening of new channels with funding transactions on the blockchain
I encountered an error while trying to
lncli openchannelwith a c-lightning node:Details below. The summary is that I'm requesting the ability to set the commitment
fee_per_kwfor an opening channel, perhaps as a global setting or perhaps as an option during channel creation. I encountered this issue on mainnet.The error message is produced by c-lightning around openning.c#L602. There's a reference in their code to a relevant bolt spec indicating that a node should refuse channel creation if it believes that the proposed
feerate_per_kwis too low.The c-lightning
feerate_per_kwappears equivalent to the LNDfee_per_kw. To resolve this issue, I attempted to modify various user-configurable settings that might have an effect on the openingfee_per_kw. I can't say that any of the following should have an effect on channelfee_per_kw, but I tried them anyway:--bitcoin.feerate--sat_per_byte/--conf-targetoptions on openchannelupdatechanpolicybefore opening a channelUltimately, I resolved the issue for myself by adjusting a hard coded target confirmation block in fundingmanager.go#L2293 from 3 to 2.
I'm not familiar enough with the architecture of this project to propose a solution to resolving a channel opening feerate negotiation.