mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-14 02:15:29 +02:00
cmd+lntest: use the new rpc field Payment_INITIATED
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
65879a45e6
commit
17a0a8de06
@@ -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