Feature request: enable funding of accounts from an external wallet

Aperta
#183 4 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
go

Direzione di ricerca

Inizia tracciando la creazione dell'account, DepositAccount() e il flusso esistente di Pool per gli indirizzi di deposito e le conferme in poold. Il lavoro è completato quando gli account nuovi ed esistenti possono essere finanziati da un wallet esterno e i depositi vengono monitorati fino al raggiungimento dell'obiettivo di conferme richiesto, senza richiedere un trasferimento dal nodo LND connesso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

advanced feature request

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:

  1. It eliminates a source of double-fee deposits; if I want to deposit more BTC into my pool account but my LND node doesn't have enough free balance, I have to first deposit BTC into my LND wallet (and thus, pay a fee for that transaction) and then run DepositAccount() to transfer that BTC from LND to pool (thus, paying a second transaction fee).
  2. This would enable rapid, "on-the-go" deposits; as above, instead of needing to wait for two transactions to confirm, I could simply deposit BTC straight into my Pool account and be ready to go within the allotted confirmation target.
  3. It eliminates a source of headaches with regard to using LND; currently, LND will tie up its entire wallet balance as unusable for every single withdrawal until said withdrawal transaction confirms. Allowing for external deposits will remove this factor, allowing for simultaneous use of LND as well as Pool.

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.

Lingua principale
Go
Stelle
256
Fork
53
Merge medio
20h 22m
PR unite (30g)
5

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lightninglabs/pool

Tutte le issue di lightninglabs/pool

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.