cmd+lntest: use the new rpc field Payment_INITIATED

This commit is contained in:
yyforyongyu
2022-11-24 14:00:57 +08:00
committed by Olaoluwa Osuntokun
parent 65879a45e6
commit 17a0a8de06
2 changed files with 4 additions and 2 deletions

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
}
}