mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 18:21:12 +02:00
routerrpc+itest: make sure TrackPayments
is compatible
This commit adds an itest case to make sure when the flag `routerrpc.usestatusinitiated` is not set, the new status is not sent.
This commit is contained in:
@@ -940,6 +940,9 @@ func (s *Server) trackPaymentStream(context context.Context,
|
||||
}
|
||||
result := item.(*channeldb.MPPayment)
|
||||
|
||||
log.Tracef("Payment %v updated to state %v",
|
||||
result.Info.PaymentIdentifier, result.Status)
|
||||
|
||||
// Skip in-flight updates unless requested.
|
||||
if noInflightUpdates {
|
||||
if result.Status == channeldb.StatusInitiated {
|
||||
|
Reference in New Issue
Block a user