mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
multi: Inbound fees are retained when not provided
Fixes the problem that inbound base fee and fee rate are overwritten with 0 if they are not specified in PolicyUpdateRequest. This ensures backward compatibility with older rpc clients that do not yet support the inbound feature.
This commit is contained in:
@@ -257,9 +257,11 @@ func updateChannelPolicy(ht *lntest.HarnessTest, hn *node.HarnessNode,
|
||||
Scope: &lnrpc.PolicyUpdateRequest_ChanPoint{
|
||||
ChanPoint: chanPoint,
|
||||
},
|
||||
MaxHtlcMsat: maxHtlc,
|
||||
InboundBaseFeeMsat: inboundBaseFee,
|
||||
InboundFeeRatePpm: inboundFeeRate,
|
||||
MaxHtlcMsat: maxHtlc,
|
||||
InboundFee: &lnrpc.InboundFee{
|
||||
BaseFeeMsat: inboundBaseFee,
|
||||
FeeRatePpm: inboundFeeRate,
|
||||
},
|
||||
}
|
||||
|
||||
hn.RPC.UpdateChannelPolicy(updateFeeReq)
|
||||
|
Reference in New Issue
Block a user