mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-19 21:31:04 +02:00
rpcserver: set recently added disabled field to routing policies
This commit is contained in:
parent
a4dc49adc4
commit
ee10b0a76c
@ -3059,6 +3059,7 @@ func marshalDbEdge(edgeInfo *channeldb.ChannelEdgeInfo,
|
|||||||
MinHtlc: int64(c1.MinHTLC),
|
MinHtlc: int64(c1.MinHTLC),
|
||||||
FeeBaseMsat: int64(c1.FeeBaseMSat),
|
FeeBaseMsat: int64(c1.FeeBaseMSat),
|
||||||
FeeRateMilliMsat: int64(c1.FeeProportionalMillionths),
|
FeeRateMilliMsat: int64(c1.FeeProportionalMillionths),
|
||||||
|
Disabled: c1.Flags&lnwire.ChanUpdateDisabled != 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3068,6 +3069,7 @@ func marshalDbEdge(edgeInfo *channeldb.ChannelEdgeInfo,
|
|||||||
MinHtlc: int64(c2.MinHTLC),
|
MinHtlc: int64(c2.MinHTLC),
|
||||||
FeeBaseMsat: int64(c2.FeeBaseMSat),
|
FeeBaseMsat: int64(c2.FeeBaseMSat),
|
||||||
FeeRateMilliMsat: int64(c2.FeeProportionalMillionths),
|
FeeRateMilliMsat: int64(c2.FeeProportionalMillionths),
|
||||||
|
Disabled: c2.Flags&lnwire.ChanUpdateDisabled != 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3535,6 +3537,7 @@ func marshallTopologyChange(topChange *routing.TopologyChange) *lnrpc.GraphTopol
|
|||||||
MinHtlc: int64(channelUpdate.MinHTLC),
|
MinHtlc: int64(channelUpdate.MinHTLC),
|
||||||
FeeBaseMsat: int64(channelUpdate.BaseFee),
|
FeeBaseMsat: int64(channelUpdate.BaseFee),
|
||||||
FeeRateMilliMsat: int64(channelUpdate.FeeRate),
|
FeeRateMilliMsat: int64(channelUpdate.FeeRate),
|
||||||
|
Disabled: channelUpdate.Disabled,
|
||||||
},
|
},
|
||||||
AdvertisingNode: encodeKey(channelUpdate.AdvertisingNode),
|
AdvertisingNode: encodeKey(channelUpdate.AdvertisingNode),
|
||||||
ConnectingNode: encodeKey(channelUpdate.ConnectingNode),
|
ConnectingNode: encodeKey(channelUpdate.ConnectingNode),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user