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:
yyforyongyu committed 2023-11-15 20:18:21 +08:00
1 parent 9acbbf0ec7
commit 99354313d5
3 files changed
+114 -20

No files matched your search

+3
View File
@@ -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 {