routing+routerrpc: also expose amt for success results in mc

This commit is contained in:
Joost Jager committed 2019-11-22 11:17:26 +01:00
1 parent 6f9fcfaccc
commit 62f8cca75b
9 files changed
+187 -166

No files matched your search

+2 -3
View File
@@ -494,9 +494,8 @@ func (s *Server) QueryMissionControl(ctx context.Context,
// toRPCPairData marshalls mission control pair data to the rpc struct.
func toRPCPairData(data *routing.TimedPairResult) *PairData {
rpcData := PairData{
MinPenalizeAmtSat: int64(
data.MinPenalizeAmt.ToSatoshis(),
),
AmtSat: int64(data.Amt.ToSatoshis()),
AmtMsat: int64(data.Amt),
LastAttemptSuccessful: data.Success,
}