lnrpc+rpcserver+lncli: rename RPC fields to previous JSON name

This commit is contained in:
Oliver Gugger
2020-02-12 16:13:07 +01:00
parent 3a5348ea8b
commit 9aff896b10
5 changed files with 671 additions and 671 deletions

View File

@@ -943,7 +943,7 @@ func (r *rpcServer) ListUnspent(ctx context.Context,
}
utxoResp := lnrpc.Utxo{
Type: addrType,
AddressType: addrType,
AmountSat: int64(utxo.Value),
PkScript: hex.EncodeToString(utxo.PkScript),
Outpoint: outpoint,
@@ -5141,11 +5141,11 @@ 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),
FeeRate: feeRate,
ChanId: chanInfo.ChannelID,
ChannelPoint: chanInfo.ChannelPoint.String(),
BaseFeeMsat: int64(edgePolicy.FeeBaseMSat),
FeePerMil: int64(feeRateFixedPoint),
FeeRate: feeRate,
})
return nil