lightninglabs/pool

On opening account, UI didn't give user feedback, resulting in multiple funding and ostensibly lost funds

NickRHill opened this issue · 6 comments

Go to pool tab on terminal.lightning.engineering

Enter an amount (eg 1M sats), target confirmation. Click to fund. Nothing seems to happen. Click again, nothing seems to happen. Click again.

Visit the dashboard, see that the balance has dropped 3 million sats. Go back to pool tab, see that there is a pending 1 million credit.

Look at spent TXOs. See three transactions to three addresses for 1 million sats.

Allow the transactions to confirm, 5+ confirmations. Re-visit pool, see a balance of only 1 million sats. 2 million have gone missing and no obvious way to recover.

Once the funding button is clicked, it should be disabled from further clicks and allow the user to see that their click has had an effect.

I now need help to recover those 2 million sats where the UI is giving no obvious way to make them usable again and is not recognising those funding transactions.

This was fixed a while ago in LiT: lightninglabs/lightning-terminal#375
Not sure if that fix was also ported over to the Terminal UI, @jamaljsr?

Anyway, to recover the funds you'll need to use the command line. See instructions here: https://docs.lightning.engineering/lightning-network-tools/lightning-terminal/troubleshooting#pool-account-recovery

I restarted litd, and could see that there was an account associated with each funding transaction in the log. Only one was available from the UI.

For those accounts not registered with the UI, I entered:
pool --tlscertpath ~/.lit/tls.cert --rpcserver=localhost:8443 accounts close [accountPK] 1

This closed the other two accounts, and returned the funds back on-chain and available to LND with a TX fee of 1 sat / vbyte.

Not sure if that fix was also ported over to the Terminal UI, @jamaljsr?

This wasn't ported over to the Terminal UI. We'll get that fixed and deployed likely next week.

@guggero Did you get my emails about "price pressure" and liquidity? I think if channel recommenders and autopilots took this into account, it would remove the need for complex solutions to the network flow issues. I have since develoepd an idea for a channel recommender which would make a nicely structured LN almost as though it is an emergent property.

@NickRHill yes, and I also answered about two weeks ago.

The PR to the Lightning Terminal was merged as well, so this shouldn't happen again, closing the issue.

@guggero Thank you,