cmd+lntest: use the new rpc field Payment_INITIATED

This commit is contained in:
yyforyongyu authored and Olaoluwa Osuntokun committed 2023-10-06 16:34:47 -07:00
1 parent 65879a45e6
commit 17a0a8de06
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -662,7 +662,9 @@ func printLivePayment(ctxc context.Context,
}
// Terminate loop if payments state is final.
if payment.Status != lnrpc.Payment_IN_FLIGHT {
if payment.Status != lnrpc.Payment_IN_FLIGHT &&
payment.Status != lnrpc.Payment_INITIATED {
return payment, nil
}
}
+1 -1
View File
@@ -136,7 +136,7 @@ func acceptHoldInvoice(ht *lntest.HarnessTest, idx int, sender,
// the payer to get one update for the creation of the payment, and
// another when a htlc is dispatched.
payment := ht.AssertPaymentStatusFromStream(
payStream, lnrpc.Payment_IN_FLIGHT,
payStream, lnrpc.Payment_INITIATED,
)
require.Empty(ht, payment.Htlcs)