-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch opening channels: Transaction is confirmed but one of the channels does not open. #249
Comments
Check pending channels |
I checked by executing the following command, but there were no pending channels.
I asked the peer to check to be sure, but no channel or pending channel existed there either. |
Look in closed channels? |
Unfortunately, what is in the closed channels is from when it was closed before batch open with bos, and there was nothing associated with this transaction. |
I would look at the logs to see what happened, in theory LND would only broadcast the tx if all of the peers were OK to open Maybe there should be an alternative model that moves this broadcast into bos itself, right now in the case of batch opening from a single node the publishing should be handled on the LND side if you see the funds are in an output and you can't find the corresponding tx on your node, you might have to use rescuefunding in guggero chantools to get the funds out of there, and that requires your peer to cooperate |
By "log" you mean lnd.log? I have a backup log of when the phenomenon occurred, so I can present it. Do you have any appropriate words to grep? Thanks for the suggestion on how to rescue the funds. Fortunately, I am in contact with my peers and will ask them for help. |
Yeah the lnd.log I would look for related ids like their pubkey and the tx id I added test cases to confirm the publish directives on the bos side and they look normal so I still feel like it may be an issue on the LND side, especially given that you didn't see any errors thrown back at you, but I can potentially address this with a new system to confirm that pending channels are present before any tx would be released to the mempool |
I pushed a new version of bos which restructures how opens are done by first waiting for all pending channels to appear before publishing the transaction, moving that publish step out of LND and into bos |
Thanks for the quick fix. I searched lnd.log by transaction ID and the public key of the node that could not be channeled. The results are as follows.
|
I would look more for the channel creation logs, maybe try to find what time that happened based on the tx time |
Unfortunately, the file I had backed up was off by a day and the logs from the time the transaction was executed were lost. I apologize for not being able to contribute. |
Background
I tried to open 4 channels at once using the bos open command. The transaction was broadcast and confirmed, but three of the four channels opened, but one did not.
The transaction is shown below, and I assume that the index of the channel that did not open is 1.
https://mempool.space/tx/67a15827b95c68b7e708e82732ff33f92ce39c1547e09714acecc09789fcebfc
The three channels from indexes 2 to 4 are respectively as follows.
I can't see any channels or pending channels from my node, is there any way to recover this fund?
Your environment
Steps to reproduce
The following command was executed.
Expected behaviour
After the funding transaction is broadcast and confirmed, all four channels open.
Actual behaviour
BOS output the following message.
Transactions were confirmed, but as noted above, three of the four were able to open channels, but one did not produce anything.
The text was updated successfully, but these errors were encountered: