mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
routerrpc: skip initiated payment in trackPaymentStream
This commit is contained in:
parent
5e369a02bb
commit
922130c80e
1 changed files with 7 additions and 4 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue