-
Notifications
You must be signed in to change notification settings - Fork 2.3k
lnwire: hard reject positive inbound fees set over RPC #8605
Copy link
Copy link
Open
Labels
P1MUST be fixed or reviewedMUST be fixed or reviewedbeginnerIssues suitable for new developersIssues suitable for new developersenhancementImprovements to existing features / behaviourImprovements to existing features / behaviourfeesRelated to the fees paid for transactions (both LN and funding/commitment transactions)Related to the fees paid for transactions (both LN and funding/commitment transactions)inbound feeChanges related to inbound routing feeChanges related to inbound routing feerpcRelated to the RPC interfaceRelated to the RPC interfacevalidation
Metadata
Metadata
Assignees
Labels
P1MUST be fixed or reviewedMUST be fixed or reviewedbeginnerIssues suitable for new developersIssues suitable for new developersenhancementImprovements to existing features / behaviourImprovements to existing features / behaviourfeesRelated to the fees paid for transactions (both LN and funding/commitment transactions)Related to the fees paid for transactions (both LN and funding/commitment transactions)inbound feeChanges related to inbound routing feeChanges related to inbound routing feerpcRelated to the RPC interfaceRelated to the RPC interfacevalidation
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.
lndisn'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.