question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Method to give existing channel funds to arbitrary account.

See original GitHub issue

Explanation:

  1. On LND, I have X channels open with local balances of A, B, C.
  2. I install LNDHub, create a wallet.
  3. My wallet balance is 0 and the only way I can get balance on it is by “charging it” via BlueWallet on-chain, or receiving an LN payment.
  4. LND won’t let me pay an invoice created by itself, so the only method is on-chain “charging” which is a waste, since I already have A + B + C total LN balance available to me.

Request:

  1. On first boot of LNDHub from fresh slate, create a default user with a balance of 100% of all channels local balance at the time of first boot.
  2. This user’s backup can be shown for users to “load” the account into their BlueWallet.
  3. The default user ID and the default user initial balance are persisted, and used to calculate the “true” balance of the default user moving forward. (so calculateBalance would add an if statement for if U.isDefaultUser() to add the instance’s default user initial balance.)

Some issues that might pop up:

How to keep the backup of that user secure? I would guess showing it only once is fine but tbh if you have access to the box with lndhub you can mess with redis and also probably swipe the admin macaroon anyways… but for umbrel if you just put it on the landing page anyone with port access to the umbrel (anyone on my local network) can see the backup if you put it on the landing page… so it’ll be difficult…

Maybe the first time the default user actually loads the backup, it changes things up so that the second person who tried to load that default user backup will always fail, and the first person is given a new backup for the default user. (rotate creds on first load?)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
xraidcommented, Jan 16, 2022

one can imagine a script that help in paying a invoice generated on account holders behalf or for edutainment let account holder create invoice in wallet, script would payout to invoice …

same would go for case where one make invoice in wallet and pay oneself from LND and then pay invoice to other account

what script would do is either just pay a invoice from LND or generate invoice and pay in one swoop …


easiest for Your case is create a account in BlueWallet and then a invoice

in terminal at node

lncli sendpayment --pay_req “invoice” --allow_self_payment

from this account distribute further …

1reaction
junderwcommented, May 15, 2021

As long as the admin credentials are randomly generated on install that sounds fine. If it’s the same credentials for everyone, then all I need is your onion URL to access your admin account.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FUNDS TRANSFER REQUEST FORM - the United Nations
Instructions for completing the Funds Transfer Request form. #1. Bank Account Title. If you wish to receive payments from the United Nations, you...
Read more >
REQUEST LETTER ITEMS - FFIEC BSA/AML
Make available a list of foreign correspondent bank accounts that offer U.S. dollar drafts. If possible, include the volume, by number and dollar...
Read more >
Advance Appropriations, Forward Funding, and Advance ...
Generally, advance appropriations are scored as new budget authority for the fiscal year in which the funds become available for obligation, not ...
Read more >
State Channels | ethereum.org
Channel peers can conduct an arbitrary number of off-chain transactions while only submitting two on-chain transactions to open and close the channel.
Read more >
Request for Information (RFI) – Secure Cash Flow Solution
CAEATFA expects to issue an RFP for a Bank to provide this Secure Cash ... appropriate amount of funds from a remittance deposit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found