lnrpc: rename proportional fee rate on lnrpc

This field is incorrectly suffixed as "msat", when it is actually
interpreted as the proportional fee rate. This is the value that we
should be using because the sender will calculate proportional fees
accordingly. This is a breaking change to the RPC, but on an
experimental and unreleased API.
This commit is contained in:
Carla Kirk-Cohen
2024-02-15 14:16:29 -05:00
parent 0aeb7c4ba2
commit 421433039b
5 changed files with 26 additions and 24 deletions

View File

@@ -1250,9 +1250,9 @@ func parseBlindedPaymentParameters(ctx *cli.Context) (
BaseFeeMsat: ctx.Uint64(
blindedBaseFlag.Name,
),
ProportionalFeeMsat: ctx.Uint64(
ProportionalFeeRate: uint32(ctx.Uint64(
blindedPPMFlag.Name,
),
)),
TotalCltvDelta: uint32(ctx.Uint64(
blindedCLTVFlag.Name,
)),