Merge pull request #8627 from feelancer21/inbound-fees-reject

lnrpc: rejects positive inbound fees by default
This commit is contained in:
Oliver Gugger authored and GitHub committed 2024-04-22 01:56:02 -06:00
commit 73fd389e9a
5 files changed
+32 -3

No files matched your search

+2 -2
View File
@@ -2376,14 +2376,14 @@ func updateChannelPolicy(ctx *cli.Context) error {
inboundBaseFeeMsat := ctx.Int64("inbound_base_fee_msat")
if inboundBaseFeeMsat < math.MinInt32 ||
inboundBaseFeeMsat > 0 {
inboundBaseFeeMsat > math.MaxInt32 {
return errors.New("inbound_base_fee_msat out of range")
}
inboundFeeRatePpm := ctx.Int64("inbound_fee_rate_ppm")
if inboundFeeRatePpm < math.MinInt32 ||
inboundFeeRatePpm > 0 {
inboundFeeRatePpm > math.MaxInt32 {
return errors.New("inbound_fee_rate_ppm out of range")
}