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:
ccdle12
2019-06-28 09:59:44 +01:00
parent 93aad89f4c
commit a93d63f04b
4 changed files with 510 additions and 493 deletions

View File

@@ -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()),
}
}