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)
|
result := item.(*channeldb.MPPayment)
|
||||||
|
|
||||||
// Skip in-flight updates unless requested.
|
// Skip in-flight updates unless requested.
|
||||||
if noInflightUpdates &&
|
if noInflightUpdates {
|
||||||
result.Status == channeldb.StatusInFlight {
|
if result.Status == channeldb.StatusInitiated {
|
||||||
|
continue
|
||||||
continue
|
}
|
||||||
|
if result.Status == channeldb.StatusInFlight {
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rpcPayment, err := s.cfg.RouterBackend.MarshallPayment(
|
rpcPayment, err := s.cfg.RouterBackend.MarshallPayment(
|
||||||
|
|||||||
Reference in new issue
Block a user