mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 19:03:16 +02:00
lnrpc+rpcserver: Adding last_update timestamp to RoutingPolicy
lnrpc/rpc.proto: updates RoutingPolicy last_update number rpcserver: adding LastUpdate field to marshalDbEdge This commit adds a LastUpdate field to each RoutingPolicy, it will show the time each RoutingPolicy was updated. lnrpc: regenerating proto files
This commit is contained in:
@@ -3770,6 +3770,7 @@ func marshalDbEdge(edgeInfo *channeldb.ChannelEdgeInfo,
|
||||
FeeBaseMsat: int64(c1.FeeBaseMSat),
|
||||
FeeRateMilliMsat: int64(c1.FeeProportionalMillionths),
|
||||
Disabled: c1.ChannelFlags&lnwire.ChanUpdateDisabled != 0,
|
||||
LastUpdate: uint32(c1.LastUpdate.Unix()),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3781,6 +3782,7 @@ func marshalDbEdge(edgeInfo *channeldb.ChannelEdgeInfo,
|
||||
FeeBaseMsat: int64(c2.FeeBaseMSat),
|
||||
FeeRateMilliMsat: int64(c2.FeeProportionalMillionths),
|
||||
Disabled: c2.ChannelFlags&lnwire.ChanUpdateDisabled != 0,
|
||||
LastUpdate: uint32(c2.LastUpdate.Unix()),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user