-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
Description
I try to use the CloseChannel
no_wait
option. If I set no_wait=True
, it still waits for the transaction to be confirmed before stopping the gRPC streaming call. It's possible that's not the intent, but the documentation here is a bit confusing what sentence refers to no_wait=True
and what refers to no_wait=False
. Possibly we need another option that controls whether or not the call waits for the close to be confirmed?
Lines 2159 to 2167 in 3707b1f
// If true, then the rpc call will not block while it awaits a closing txid | |
// to be broadcasted to the mempool. To obtain the closing tx one has to | |
// listen to the stream for the particular updates. Moreover if a coop close | |
// is specified and this flag is set to true the coop closing flow will be | |
// initiated even if HTLCs are active on the channel. The channel will wait | |
// until all HTLCs are resolved and then start the coop closing process. The | |
// channel will be disabled in the meantime and will disallow any new HTLCs. | |
bool no_wait = 8; |