-
Notifications
You must be signed in to change notification settings - Fork 48
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
Feature request: enable funding of accounts from an external wallet #183
Comments
This is likely a bit more involved than you anticipate. We originally examined this type of deposit, but then went with the current model as it's: simpler and also ends up saving on chain fees in a batch given each participant has only a single output. Using a single deposit address would also mean address re-use for each user of pool that used the feature. Generating new addresses each time is possible, but would then require some interaction from the server so it can properly increment the "account nonce" on its end each time.
It's possible to spend these outputs in an unconfirmed manner using the existing |
One other complication here is that it would then be possible to have partial account expiry (so some of your account UTXOs expire while others are still valid), which complicates the account management state machine. This would be alleviated somewhat by having auto-renew implemented (so renew an account each time it's part of a batch), which is planned as well. |
Can you point me to where I'd find documentation on that? It would be hella useful for my use case. |
The code doesn't allow it at the moment, but the relevant section would be:
For new accounts, we'll want to perform manual coin selection as done with deposits instead of using |
itest: test abandon channel of replaced batch
Whether creating new accounts or depositing into existing ones, there should be an option to fund accounts via an external deposit mechanism -- read: not directly from the connected LND node. This is useful for a few reasons:
Pool already has a mechanism for creating a deposit address and for awaiting the confirmation of a transaction before fully opening the account. Given this, it should be possible for poold to be funded via an external wallet.
My thought process is to have the account creation function create an address which can be deposited to, and then watch for deposits to that address, rather than expecting a specific Outpoint from LND.
I can spend a little time implementing some of this via a PR, as well.
The text was updated successfully, but these errors were encountered: