Skip to content

Set Commitment fee_per_kw for a New Channel #687

@JASchilz

Description

@JASchilz

I encountered an error while trying to lncli openchannel with a c-lightning node:

[lncli] rpc error: code = Code(202) desc = feerate_per_kw 2000 below minimum 2201

Details below. The summary is that I'm requesting the ability to set the commitment fee_per_kw for 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_kw is too low.

The c-lightning feerate_per_kw appears equivalent to the LND fee_per_kw. To resolve this issue, I attempted to modify various user-configurable settings that might have an effect on the opening fee_per_kw. I can't say that any of the following should have an effect on channel fee_per_kw, but I tried them anyway:

  • the lnd setting --bitcoin.feerate
  • the --sat_per_byte/--conf-target options on openchannel
  • using lncli's updatechanpolicy before opening a channel

Ultimately, 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3might get fixed, nice to havechannelscommitmentsCommitment transactions containing the state of the channelenhancementImprovements to existing features / behaviourfeature requestRequests for new featuresfundingRelated to the opening of new channels with funding transactions on the blockchain

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions