Skip to content

lnwire: hard reject positive inbound fees set over RPC  #8605

@Roasbeef

Description

@Roasbeef

In #6703, we'll add initial support for inbound fees. Due to deployment considerations, only inbound fees should be used, as they're backwards compatible. An unupgraded sender will end up missing out on the discount, but the payment will go through if negative fees are used. If positive fees are used, then the forwarding node may reject a payment from an unupgraded sender. Additionally, in order for the sender to be able to properly retry, they'll also need the inbound fee policy in addition to the outbound fee policy. lnd isn't yet able to send both policies until #6967 is merged.

To ensure the base feature minimized disruption in the network, we should also modify the RPC code to reject positive inbound fees. The CLI code will already do this.

Metadata

Metadata

Assignees

Labels

P1MUST be fixed or reviewedbeginnerIssues suitable for new developersenhancementImprovements to existing features / behaviourfeesRelated to the fees paid for transactions (both LN and funding/commitment transactions)inbound feeChanges related to inbound routing feerpcRelated to the RPC interfacevalidation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions