cmd+lntest: use the new rpc field Payment_INITIATED
This commit is contained in:
1 parent
65879a45e6
commit
17a0a8de06
2 files changed
+4
-2
No files matched your search
@@ -662,7 +662,9 @@ func printLivePayment(ctxc context.Context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Terminate loop if payments state is final.
|
// 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
|
return payment, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
// the payer to get one update for the creation of the payment, and
|
||||||
// another when a htlc is dispatched.
|
// another when a htlc is dispatched.
|
||||||
payment := ht.AssertPaymentStatusFromStream(
|
payment := ht.AssertPaymentStatusFromStream(
|
||||||
payStream, lnrpc.Payment_IN_FLIGHT,
|
payStream, lnrpc.Payment_INITIATED,
|
||||||
)
|
)
|
||||||
require.Empty(ht, payment.Htlcs)
|
require.Empty(ht, payment.Htlcs)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user