routerrpc: skip initiated payment in trackPaymentStream
This commit is contained in:
1 file changed
+7
-4
@@ -941,10 +941,13 @@ func (s *Server) trackPaymentStream(context context.Context,
|
||||
result := item.(*channeldb.MPPayment)
|
||||
|
||||
// Skip in-flight updates unless requested.
|
||||
if noInflightUpdates &&
|
||||
result.Status == channeldb.StatusInFlight {
|
||||
|
||||
continue
|
||||
if noInflightUpdates {
|
||||
if result.Status == channeldb.StatusInitiated {
|
||||
continue
|
||||
}
|
||||
if result.Status == channeldb.StatusInFlight {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
rpcPayment, err := s.cfg.RouterBackend.MarshallPayment(
|
||||
|
||||
Reference in new issue
Block a user