mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
lnrpc: rename MaxHtlc to MaxHtlcMsat in lnrpc.RoutingPolicy
In this commit, we rename the new `MaxHtlc` field to `MaxHtlcMsat`. We do this in order to adhere to the new practice to suffix each amount related field with their proper unit.
This commit is contained in:
parent
b13d8cd261
commit
5d1eaaffa4
1124
lnrpc/rpc.pb.go
1124
lnrpc/rpc.pb.go
File diff suppressed because it is too large
Load Diff
@ -1597,7 +1597,7 @@ message RoutingPolicy {
|
||||
int64 fee_base_msat = 3 [json_name = "fee_base_msat"];
|
||||
int64 fee_rate_milli_msat = 4 [json_name = "fee_rate_milli_msat"];
|
||||
bool disabled = 5 [json_name = "disabled"];
|
||||
uint64 max_htlc = 6 [json_name = "max_htlc"];
|
||||
uint64 max_htlc_msat = 6 [json_name = "max_htlc_msat"];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2816,7 +2816,7 @@
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
},
|
||||
"max_htlc": {
|
||||
"max_htlc_msat": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
}
|
||||
|
@ -3850,7 +3850,7 @@ func marshalDbEdge(edgeInfo *channeldb.ChannelEdgeInfo,
|
||||
edge.Node1Policy = &lnrpc.RoutingPolicy{
|
||||
TimeLockDelta: uint32(c1.TimeLockDelta),
|
||||
MinHtlc: int64(c1.MinHTLC),
|
||||
MaxHtlc: uint64(c1.MaxHTLC),
|
||||
MaxHtlcMsat: uint64(c1.MaxHTLC),
|
||||
FeeBaseMsat: int64(c1.FeeBaseMSat),
|
||||
FeeRateMilliMsat: int64(c1.FeeProportionalMillionths),
|
||||
Disabled: c1.ChannelFlags&lnwire.ChanUpdateDisabled != 0,
|
||||
@ -3861,7 +3861,7 @@ func marshalDbEdge(edgeInfo *channeldb.ChannelEdgeInfo,
|
||||
edge.Node2Policy = &lnrpc.RoutingPolicy{
|
||||
TimeLockDelta: uint32(c2.TimeLockDelta),
|
||||
MinHtlc: int64(c2.MinHTLC),
|
||||
MaxHtlc: uint64(c2.MaxHTLC),
|
||||
MaxHtlcMsat: uint64(c2.MaxHTLC),
|
||||
FeeBaseMsat: int64(c2.FeeBaseMSat),
|
||||
FeeRateMilliMsat: int64(c2.FeeProportionalMillionths),
|
||||
Disabled: c2.ChannelFlags&lnwire.ChanUpdateDisabled != 0,
|
||||
@ -4410,7 +4410,7 @@ func marshallTopologyChange(topChange *routing.TopologyChange) *lnrpc.GraphTopol
|
||||
RoutingPolicy: &lnrpc.RoutingPolicy{
|
||||
TimeLockDelta: uint32(channelUpdate.TimeLockDelta),
|
||||
MinHtlc: int64(channelUpdate.MinHTLC),
|
||||
MaxHtlc: uint64(channelUpdate.MaxHTLC),
|
||||
MaxHtlcMsat: uint64(channelUpdate.MaxHTLC),
|
||||
FeeBaseMsat: int64(channelUpdate.BaseFee),
|
||||
FeeRateMilliMsat: int64(channelUpdate.FeeRate),
|
||||
Disabled: channelUpdate.Disabled,
|
||||
|
Loading…
Reference in New Issue
Block a user