routerrpc: create pair data proto message

With a separate proto message, it becomes possible to also return the
pair data for a single pair. This prepares for the new mc probability
querying rpc.
This commit is contained in:
Joost Jager committed 2019-10-29 12:32:17 +01:00
1 parent 3d8adaef95
commit 04e7c98461
4 files changed
+204 -145

No files matched your search

+3 -3
View File
@@ -48,9 +48,9 @@ func queryMissionControl(ctx *cli.Context) error {
displayPairHistory{
NodeFrom: hex.EncodeToString(n.NodeFrom),
NodeTo: hex.EncodeToString(n.NodeTo),
LastAttemptSuccessful: n.LastAttemptSuccessful,
Timestamp: n.Timestamp,
MinPenalizeAmtSat: n.MinPenalizeAmtSat,
LastAttemptSuccessful: n.History.LastAttemptSuccessful,
Timestamp: n.History.Timestamp,
MinPenalizeAmtSat: n.History.MinPenalizeAmtSat,
},
)
}