lnrpc+rpcserver: expose short chan id on feereport
This commit adds each channel's short chan id to the `feereport` rpc. Without this, it can be tedious to lookup more info about a particular channel since most rpcs only accept short chan ids and not channel points. For instance, now one can take a channel id from `feereport` and look it up directly via `getchaninfo` to examine the policy in more detail.
This commit is contained in:
4 files changed
+442
-424
No files matched your search
@@ -5129,6 +5129,7 @@ func (r *rpcServer) FeeReport(ctx context.Context,
|
||||
|
||||
// TODO(roasbeef): also add stats for revenue for each channel
|
||||
feeReports = append(feeReports, &lnrpc.ChannelFeeReport{
|
||||
ChanId: chanInfo.ChannelID,
|
||||
ChanPoint: chanInfo.ChannelPoint.String(),
|
||||
BaseFeeMsat: int64(edgePolicy.FeeBaseMSat),
|
||||
FeePerMil: int64(feeRateFixedPoint),
|
||||
|
||||
Reference in new issue
Block a user