Bitcoin Forum
May 04, 2024, 05:26:14 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 ... 78 »
  Print  
Author Topic: The Lightning Network FAQ  (Read 32059 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (37 posts by 1+ user deleted.)
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
June 26, 2019, 09:36:04 PM
Last edit: November 20, 2021, 11:21:36 AM by Rath_
Merited by Welsh (50), LoyceV (42), suchmoon (39), ABCbits (27), 1miau (26), fillippone (20), El duderino_ (16), hugeblack (15), Cyrus (12), EFS (10), TryNinja (10), paid2 (10), dbshck (8), o_e_l_e_o (7), malevolent (6), OmegaStarScream (6), Pmalek (5), joniboini (5), DdmrDdmr (3), Porfirii (3), Csmiami (3), nutildah (2), Quickseller (2), Halab (2), bitmover (2), darkv0rt3x (2), yslyv (2), apogio (2), Mauser 98 (2), d5000 (1), JayJuanGee (1), Timelord2067 (1), BitMaxz (1), Wind_FURY (1), btc78 (1), hosseinimr93 (1), DireWolfM14 (1), vv181 (1), jamyr (1), Heisenberg_Hunter (1), WhyFhy (1), asu (1), DaCryptoRaccoon (1), Apocollapse (1), n0nce (1), modrobert (1), Chlotide (1), darosior (1), PhoenixZephyrus (1), saraschoudhary (1), btcduster (1)
 #1

This thread is now self-moderated. The previous one got derailed. Please, don't discuss here whether or not the Lightning Network is a good scaling solution.

If you don't know anything about the Lightning Network, consider reading "Basics of The Lightning Network" first.

Table of contents

      1. Lightning basics
      2. Wallets
      3. Running a node
      4. Concerns
      5. Other questions

Lightning basics

How are coins on the Lightning Network different from the on-chain ones?

They are exactly the same coins. They are stored in a multi-signature address and transactions are settled between two parties without broadcasting anything to the blockchain (except when opening and closing the channel). Every time a payment is settled, a new commitment transaction is signed. Such a transaction reflects the current state of the channel and can be broadcast if one of the participant disappears.


How many times can a payment channel be used?

Payment channels can be used as long as both parties continue to cooperate with each other. Channels do not have any use or time limit.


How large is the Lightning Network?

The total number of nodes, channels and network capacity has been constantly increasing for quite some time now. You can use 1ml.com to see up-to-date statistics. Keep in mind that some channels are private; they are not advertised across the network so they are not included in those stats.


How fast are Lightning Network payments?

They are usually instantaneous. Although, some payments might take a few seconds if a wallet needs to try multiple different paths.


How often do payments fail?

A payment fails if there is no route to the destination or if there is no enough liquidity in the channels in the selected routing path. The latter problem can be mitigated by splitting the payment into few small chunks and sending them through different paths.


How high are transaction fees?

Most channels charge a base fee and a fee proportional to the amount sent, so the larger the payment, the more you are going to pay. You should pay less than 3 satoshi for transactions <= $10 for most of the time.


Are Lightning Network payments more anonymous than on-chain transactions?

Yes, Lightning Network payments are more anonymous. They use onion routing. In short, when a payment is being routed, an intermediary node knows only the previous and the next node in the path. It is impossible to tell who initiated the payment and what the final destination is.


Wallets

Which wallet would be the best for me?

There are quite a few interesting options for different kinds of users.

No-coiners: Strike

Bitcoin newbies: BlueWallet

Regular users: Phoenix Wallet, Breez Wallet, Blixt Wallet

Advanced users: run your own node Smiley

Electrum also has a built-in support for the Lightning Network. Make sure to read Electrum Lightning Network walkthrough if you decide to give it a try.


Should I run my own node instead of using some wallet?

You could benefit from running your own node in a few ways. Assuming that you would run your node 24/7, you would be able to receive payments at all times. Nodes can also help the network by forwarding payments. You would also be able to take advantage of advanced features like: opening multiple channels in a single transaction, dual-funding and keysend payments.


Do I have to generate an invoice every time I want to receive coins over the Lightning Network?

No, invoiceless (keysend/spontaneous) payments are supported by LND and c-lightning. Most wallets do not support this feature, though.


Why can't I receive coins?

In order to receive Lightning payments, some conditions must be met:

1. Nothing can be received immediately after creating a new payment channel, as ‘room’ for incoming funds has to be made by spending some funds first. A payment channel can be thought of as a full bottle of water: in order to pour something in one first has to pour something out.

2. Each channel implicitly contains a reserve which is unspendable and typically takes about 2% of the channel’s capacity. You must spend an amount matching that reserve to make receiving possible. Unspendable channel reserve is the reason you see a negative receive limit when a new channel is full. It indicates how much you need to spend before anything can be received through the channel.

3. Every payment request is disposable, they can’t be fulfilled twice. So you will need to issue a new individual payment request for every incoming payment you wish to receive.

4. Wallet needs to be online in order to receive off-chain funds.


Can I receive a payment when I am offline?

You need to use a third-party service or a custodial wallet (ex. BlueWallet) for that.


Running a node

Which implementation should I choose?

The most popular implementations are: c-lightning, LND and eclair. Each of them offers slightly different features and third-party plugin/software support. You should research it carefully before making a decision. It is impossible to move existing channels between implementations; you would have to reopen them if you changed your mind.


How much money can you make on running a Lightning Network node?

Unless you have a lot of coins, your earnings won't be enough to cover both hardware and maintenance costs. If you are already running a full node to support the network then a small Lightning node won't put much stress on your hardware.

I have been running a small node (6 channels; ~0.10 BTC capacity) for about 3 months now. I earned over 500 satoshi in the first month during which I was experimenting a lot with my fee settings for each channel. In the second and the third month I earned ~110 and ~160 satoshi respectively without paying much attention to my node. If you want to see up-to-date stats, check out The Lightning Network node experience thread.


Does opening new channels help to increase the earnings?

Maybe. There are also a few other things that you should take into account: your fee policy, liquidity and the average capacity of your channels. It doesn't make much sense to open channels only to large nodes. They very likely already have large channels between themselves. It might be a good idea to open channels to medium sized nodes which are at the opposite ends of the network.


Does my node have to route payments?

You can either create private channels which are not advertised across the network or you can set extremely large routing fees for your channels to discourage other people from using them.


How do channel owners get paid for routing payments?

The routing fee is added to the balance of the person who routes the payment. The total fee charged is calculated as follows: basefee + (amount * feerate / 1000000), where amount is the forwarded amount. Both basefee and feerate can be adjusted individually for every channel. Note that the fee is charged based on the settings of the outgoing channel.


Is running a Lightning Network node demanding?

Even a Raspberry Pi 3 B+ is capable of running a Lightning Network node. Check out RaspiBlitz, RaspiBolt or Umbrel for fast setup. I used to run a full Bitcoin node and LND on a 2 GB Raspberry Pi 4 and everything was working fine. It might be also a good idea to get a cheap used laptop instead. If you still want to buy a Raspberry Pi then consider paying extra for the latest model which is far more superior in terms of CPU performance.


Is there any risk in running a Lightning Network node?

Yes, due to many factors. Lightning Network implementations might contain critical bugs which could be exploited to steal funds locked up in channels. A Lightning node is basically a hot wallet. You should not keep any significant amount of coins on it unless you know what you are doing.

If you don't keep your node online 24/7, someone can attempt to cheat by broadcasting an old state of your channel. An online node would normally broadcast a penalty transaction. This can be mitigated by the use of watchtowers.


Do I have to run a full Bitcoin node?

No, LND supports neutrino; c-lightning allows using a pruned node. It might be a bumpy experience, though. Keep in mind that you might encounter some problems if your Lightning software crashes. Your Bitcoin node could delete a block which still hasn't been processed by your Lightning node.


How do I backup my channels?

You cannot restore your channels from your seed. The backup process varies on the implementation.

LND: you should back up your channel.backup file whenever you open a new channel. You can use it to reconnect to your peers and ask them to close the channel forcefully. Note that if the other node is offline or refuses to cooperate, you won't be able to recover your coins.

c-lightning: read this; you will probably end up using a backup plugin which maintains a full copy of your channel database. You can keep using your channels after restoring such backup.


Can I refill my channel?

Currently, it is impossible to refill a channel without the use of third-party services. Splicing is supposed to address this problem. It will allow to increase/decrease the total capacity of the channel without closing it.

You can use Boltz, Lightning Conductor, ZigZag to exchange on-chain coins to off-chain ones and vice-versa.


How do I balance my channel?

You can balance your channel by spending coins from it. See the answer above. You can also use those services to convert your off-chain balance to an on-chain transaction.

You can open a dual-funded channel. This feature is currently available only in c-lightning and requires both users to enable it manually.

You can also try setting both your base fee and PPM temporarily to zero or some low value to encourage other people to use your channel. Although, you will have no control over the amount of coins that gets moved to the other side in the process.


What happens to milisatoshis when the channel is being closed?

Example: let's assume that after deducting the fee of the closing transaction, node A is supposed to get 6049.4 sat and node B 10300.6 satoshis. Since Bitcoin blockchain supports only up to 8 decimals, we have to do something about milisatoshis. All such values are rounded down and the remaining 1 satoshi is added to the transaction fee.

It is also worth mentioning that if one of the parties' balance is under the dust limit, it is added to the fee instead.


Who pays the channel opening and closing transaction fee?

The channel opening transaction fee is always paid by the founder of the channel. If the channel is closed cooperatively then the founder also covers the transaction fee. An uncooperative channel close involves two on-chain transactions. If the channel is closed by the other participant then they cover the fee of the second transaction.


How does uncooperative channel close work?

First of all, the timelock is decided before the channel is established. By default, most nodes force the other peer to wait 144 blocks (~1 day). The maximum acceptable value by default is 2016 blocks (~2 weeks). I configured my node to create channels with their_to_self_delay = 432 blocks (~3 days), so if someone decides to close the channel opened to my node uncooperatively, they will have to wait 432 blocks (after the commitment transaction has been included in a block) before they can spend the output belonging to them. Those timelocks are relative which means that you do not have to sign a new commitment transaction whenever a new block is mined. New commitment transactions are signed periodically because their fees need to match the current state of the mempool. There is no point in paying 60 sat/vbyte when 1 sat/vbyte transactions are getting confirmed in just a few minutes. It also applies the other way around.

The first transaction is the commitment transaction. Let's say there's node A(lice) and node B(ob), and node A broadcasts the commitment transaction. That commitment transaction includes two outputs:

- output #0: 3 BTC (spendable by node B's private key) - reflecting node B balance
- output #1: 6 BTC (RSMC) - reflecting node A balance

There is one more important detail before we go any further. Whenever a new commitment transaction is signed, both parties exchange revocation keys for the previous commitment transaction so that they can both be sure that the other party is very unlikely to broadcast an old state of the channel.

RSMC is short for Revocable Sequence Maturing Contract. Such an output contains a relative timelock. This means that you can't spend this output until a certain amount of blocks have been mined since the transaction which includes that output was mined.

Let's say node B didn't change the default value of 144 blocks and the commitment transaction has been confirmed. There are two possible scenarios.

1) Node A attempts to cheat and broadcast an old commitment transaction. Node B has 144 blocks to spend the RSMC output using his and node A's revocation key which he got while they were working on a new commitment transaction.

2) Node A broadcasts the latest commitment transaction. In such a case, node B never got node A's revocation key for that commitment transaction, so he cannot spend that RSMC. Node A can broadcast another transaction spending that output after 144 blocks have been mined.


Concerns

Is the Lightning Network centralized?

The common argument is that users are more likely to open channels to large nodes rather than small/medium ones. While that's true, as the networks continues to grow, we can expect hundreds or even thousands of nodes to concentrate end users. This post speculates on possible types of nodes; you should read it if you are still concerned.


Can it have a negative impact on the first layer?

If many channels are closed at once, the transaction fees could immediately spike and remain high for an extended period of time.


Does the Lightning Network solve Bitcoin's scalability problem?

Not completely. The Lightning Network was designed mostly for micro-transactions which would not be cost-effective on the first layer. Large payments are also feasible thanks to multi-path payments. Opening a channel involves an on-chain transaction so if we expect every user to open at least one channel, the blockchain would quickly become congested for a long time. Thus, other scaling solutions are needed. Alternatively, more layers can be built on top of the Lightning Network.


What would happen if some nodes went temporarily offline?

Should many large nodes go offline at the same time, payment failures might become more common. If you have only one channel and your peer goes offline then you obviously won't be able to send and receive any payments.


Other questions


What shops accept Lightning Network payments?

Here you can find a list of merchants who accept LN payments.


Do any exchanges support the Lightning Network?

Yes, the biggest exchange which supports Lightning deposits and withdrawals is Bitfinex. Here you can find an up-to-date list of exchanges which support the LN.


What are the upcoming features?

Dual funded channels - both parties will be able to fund a channel. This feature is available in c-lightning (experimentally).

Splicing-In & Out - it will be possible to add and remove funds from existing Lightning Network channels without having to close them.

Channel factories - existing Lightning Network channels could be used for creating new channels without broadcasting anything to the Bitcoin network. Normally, a channel is opened to only one person. In channel factories, there is a group of people. Group members maintain channels between themselves. More involved users = more savings. If one of the participants is uncooperative, existing channels are not affected - new channels can't be created, though.
1714800374
Hero Member
*
Offline Offline

Posts: 1714800374

View Profile Personal Message (Offline)

Ignore
1714800374
Reply with quote  #2

1714800374
Report to moderator
1714800374
Hero Member
*
Offline Offline

Posts: 1714800374

View Profile Personal Message (Offline)

Ignore
1714800374
Reply with quote  #2

1714800374
Report to moderator
1714800374
Hero Member
*
Offline Offline

Posts: 1714800374

View Profile Personal Message (Offline)

Ignore
1714800374
Reply with quote  #2

1714800374
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714800374
Hero Member
*
Offline Offline

Posts: 1714800374

View Profile Personal Message (Offline)

Ignore
1714800374
Reply with quote  #2

1714800374
Report to moderator
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
June 26, 2019, 09:36:26 PM
Last edit: May 09, 2020, 10:27:55 PM by BitCryptex
 #2

I decided to re-post this thread without making many changes. I will focus on answering questions from the previous thread and keeping this one clean.

This thread is now self-moderated. Old thread got derailed. Please, don't discuss here whether or not the Lightning Network is a good scaling solution.

But I'm not sure if that's possible, until now the channel doesn't allow me to send my full balance. It varies a bit, so I'm not sure what the minimum reserve is.

Every channel has to maintain a reserve. It should be equal to 1% of the initial channel balance. Some wallets do not inform the user that such thing exists.

How do I choose which node to open a channel to?

I guess that you have already figured it out. The easiest way is to look for a well-connected node on 1ml.com and then copy its public key. Alternatively, users who run LND can take advantage of built-in autopilot which works quite well.

And: I expected payments to use both channels when possible, but until now that hasn't happened.

It's called payment slicing. Unfortunately, this feature is not available yet.
Wind_FURY
Legendary
*
Offline Offline

Activity: 2912
Merit: 1825



View Profile
June 27, 2019, 08:43:44 AM
 #3

Basic question. What kind of hardware specs, and bandwidth are recommended to maintain a routing node that has 100+ channels?

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
June 27, 2019, 10:25:49 AM
 #4

Basic question. What kind of hardware specs, and bandwidth are recommended to maintain a routing node that has 100+ channels?

Running a Lightning Network node is not demanding. LNchat's node has 16 active channels and it uses less than 1% of available RAM (~300 MB out of 32 GB) and barely any CPU processing power. I don't monitor how much data is being used by the server since I also use it for a few different things.

Xian01 had been running a Lightning Network node (~200 channels) and posted some information which might be useful to you.
WhyFhy
Hero Member
*****
Offline Offline

Activity: 1430
Merit: 513



View Profile
June 28, 2019, 04:30:32 PM
Last edit: June 28, 2019, 05:04:19 PM by WhyFhy
Merited by LoyceV (1)
 #5

Basic question. What kind of hardware specs, and bandwidth are recommended to maintain a routing node that has 100+ channels?
Bandwith,Ram,Processor dont really hold any weight on hardware decisions,
 I would however recommend running Raid 1 and 2 new drives, with APC. *Edit Raid 1 (not 0)
You want to focus on stability over time to prevent the node from crashing.
Hope this helps.
If your just wanting to play with it google compute is offering $300 trials and have been stable for my projects.


  BTC
.
BTC
.
 BTC
.
BTC
/]..[banned mixer]..
██
██
██
██
██
██
██

██

██

██

██
/]YOUR OPPORTUNITY TO
HAVE BITCOIN BUSINESS

██
██
██
██
██
██
██

██

██

██

██
.
  BTC
. BTC
.
.
 
BTC
  BTC
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
June 28, 2019, 04:56:29 PM
Merited by WhyFhy (1)
 #6

I would however recommend running Raid 0 and 2 new drives, with APC.

Wouldn't RAID 1 be better in such case? On-chain funds can be easily recovered using a seed but it won't restore the file which keeps channel state. Once you lose it, you have to depend on the other party. They might attempt to cheat. Using an old backup will be treated as a cheat attempt.
WhyFhy
Hero Member
*****
Offline Offline

Activity: 1430
Merit: 513



View Profile
June 28, 2019, 05:03:30 PM
 #7

I would however recommend running Raid 0 and 2 new drives, with APC.

Wouldn't RAID 1 be better in such case? On-chain funds can be easily recovered using a seed but it won't restore the file which keeps channel state. Once you lose it, you have to depend on the other party. They might attempt to cheat. Using an old backup will be treated as a cheat attempt.
Yes Raid one would be better, I got them mixxed up. But yes "Mirroring" is the best way,

*considering its page 1 I felt it critical to edit that mistake xD

I also wanted to add if your caught doing that you do get penalized as there are measures in place, I do not know the complexities behind the penalties though.

  BTC
.
BTC
.
 BTC
.
BTC
/]..[banned mixer]..
██
██
██
██
██
██
██

██

██

██

██
/]YOUR OPPORTUNITY TO
HAVE BITCOIN BUSINESS

██
██
██
██
██
██
██

██

██

██

██
.
  BTC
. BTC
.
.
 
BTC
  BTC
Khaos77
Member
**
Offline Offline

Activity: 200
Merit: 73

Flag Day ☺


View Profile
June 28, 2019, 05:24:04 PM
 #8

I would however recommend running Raid 0 and 2 new drives, with APC.

Wouldn't RAID 1 be better in such case? On-chain funds can be easily recovered using a seed but it won't restore the file which keeps channel state. Once you lose it, you have to depend on the other party. They might attempt to cheat. Using an old backup will be treated as a cheat attempt.
Yes Raid one would be better, I got them mixxed up. But yes "Mirroring" is the best way,

*considering its page 1 I felt it critical to edit that mistake xD

I also wanted to add if your caught doing that you do get penalized as there are measures in place, I do not know the complexities behind the penalties though.


FYI:
Mirroring Increases Read Speeds, but decreases Write Speeds verses a single drive.
This can always be compensated for by using a high end RAID controller, that has Ram installed on it specially for Caching Reads & Writes.

If you want a professional designed system to stay up ,
you need to design a Server with Redundant Power Supplies running RAID 5 with hot swap able drives.
That way if 1 drive fails, you just hot-swap the new one and it automatically recovers the data, No Down Time.  Smiley
Also have a UPS ,that is connected to an alternative power source so if the normal power cuts off, your system stays up.
In addition, have two separate ISPs, with an automatic rollover if 1 ISP fails.

* I have seen companies do the above and even have redundant servers , if the motherboards failed for mission critical applications.*

Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
June 28, 2019, 05:37:58 PM
 #9

-snip

That's an overkill for a simple Lightning Network node. By default, one have 24 hours to bring back one's node online before forced channel closure (old channel state might be broadcast to the network).
WhyFhy
Hero Member
*****
Offline Offline

Activity: 1430
Merit: 513



View Profile
June 28, 2019, 05:39:45 PM
Last edit: June 28, 2019, 05:51:55 PM by WhyFhy
 #10

That would be a nice build Smiley go with a perc6 raid controller Smiley  slap on FOG snapshots to be extra
bit excessive for how beta LN is, surly opennode and eclair are using build like this though.

I know blockstream could be a viable option in the future on network/bandwidth redundancy, 1 way handshakes though even if LND got implemented. Unless we somehow get blockstream TRIA compatable (2 way LNB) blockstream would be something different entirely in that case if we could somehow get that to happen via BTC network fee's or something that would be sweet.


  BTC
.
BTC
.
 BTC
.
BTC
/]..[banned mixer]..
██
██
██
██
██
██
██

██

██

██

██
/]YOUR OPPORTUNITY TO
HAVE BITCOIN BUSINESS

██
██
██
██
██
██
██

██

██

██

██
.
  BTC
. BTC
.
.
 
BTC
  BTC
Khaos77
Member
**
Offline Offline

Activity: 200
Merit: 73

Flag Day ☺


View Profile
June 28, 2019, 06:03:49 PM
Merited by LoyceV (1)
 #11

-snip

That's an overkill for a simple Lightning Network node. By default, one have 24 hours to bring back one's node online before forced channel closure (old channel state might be broadcast to the network).

Overkill is the point for a No DownTime Setup.

But even the simple setup need to be prepared for

Power Failures  , (Hurricanes or Ice Storms can have power off for weeks.)
ISP Failures    

All of which can still take you offline even if your PC is working perfectly.

I imagine at some point the watchtowers will handle all of the fail-over concerns.

Do you happen to know what specs & infrastructure the watch towers will be using?
TIA.



That would be a nice build Smiley go with a perc6 raid controller Smiley  slap on FOG snapshots to be extra
bit excessive for how beta LN is, surly opennode and eclair are using build like this though.


I always liked the PERC RAID Controllers.  Smiley
Farul
Sr. Member
****
Offline Offline

Activity: 270
Merit: 309


Shinji bgt gwh


View Profile
June 29, 2019, 01:10:36 PM
Merited by dbshck (4), bones261 (2), LoyceV (1)
 #12

How Is Milisatoshi In A Channel Is Shared When The Channel Closed?
And Who Pay For The Channel Closing Transaction Fee? Is It Shared Equally Between 2 Party? And What If One Party Has No Balance?

Example:
A Has 150000.5 Satoshi In X Channel
B Has 49999.5 Satoshi In X Channel
B Decided To Close X Channel, The Channel Closing Transaction Fee Is 20000 Satoshi.
How Much Did A & B Get In This Case?

Sorry If It Hard To Understand

"I mustn't run away, I mustn't run away." - Shinji Ikari
🤖 Wannabe CTF Player 🌌
👼🚀
CreateCryptoCo.in
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile WWW
June 29, 2019, 04:06:20 PM
 #13

Great thread,happy to see that lightning network is here to solve micro transactions  Smiley
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
June 29, 2019, 05:08:49 PM
Merited by dbshck (4), bones261 (2), Farul (1)
 #14

How Is Milisatoshi In A Channel Is Shared When The Channel Closed?

The amount is rounded down when the channel is closed. 1 msat = 1/1000 sat. For example, if you have 900 msat then you will get 0 satoshi on channel closure.

And Who Pay For The Channel Closing Transaction Fee? Is It Shared Equally Between 2 Party? And What If One Party Has No Balance?

The person who opened the channel covers the closing fee. Note that it's not possible to use up all funds that are locked up in the channel.
Farul
Sr. Member
****
Offline Offline

Activity: 270
Merit: 309


Shinji bgt gwh


View Profile
June 30, 2019, 02:22:34 PM
 #15

How Is Milisatoshi In A Channel Is Shared When The Channel Closed?
The amount is rounded down when the channel is closed. 1 msat = 1/1000 sat. For example, if you have 900 msat then you will get 0 satoshi on channel closure.
i.e
Channel is Funded With 100 Satoshi
A Has 50.1 Satoshi
B Has 49.9 Satoshi
Assume That There's No Transaction Fee A Get 50 satoshi while B Get 49 satoshi.

Did That Mean The 1 Satoshi (Rounded Down Satoshi) Is Left Behind On The Multisig Wallet?

Isn't That Will Ended Up Filling Bitcoin Network UTXO, Which Bitcoin Node Should Store? #PotatoNodesMatter

The person who opened the channel covers the closing fee. Note that it's not possible to use up all funds that are locked up in the channel.
What If The Channel Opener [X] Had So Little Balance That Will Not Enough To Pay For Fee? Did [Y] Must Give [X] Some BTC So He Can Pay For The Closing Fee?

BTW I See That There's A Minimum Time Limit Before A Party Can Close A Channel(A Party Can't Close A Channel Before XX/XX/XXXX). Did That Achieved By Timelock or by The Lightning Protocol Itself?

"I mustn't run away, I mustn't run away." - Shinji Ikari
🤖 Wannabe CTF Player 🌌
👼🚀
Csmiami
Copper Member
Legendary
*
Offline Offline

Activity: 1596
Merit: 1319


I'm sometimes known as "miniadmin"


View Profile WWW
June 30, 2019, 03:16:08 PM
Last edit: June 30, 2019, 03:50:19 PM by Csmiami
 #16

I've reading trough the forum and some googling; because I'm considering opening a LN node with a raspberry, but there are some concerns I have and haven't really found any useful info out there (maybe I should have look further). Questions are the following:

  • Would I be able to run a dual node on the raspberry? (BTC+LN)
  • I understand that to run a node you don't need to have an open channel; am I right?

I'm sorry to ask if this has been answered before.

Thanks in advance


I'll give some more details, as I believe that will help resolve the doubts.

I'm planing on using a Raspberry PI 3 Model B+ plugged straight to the router, and with a 256gb flash card for the OS (Raspbian). Then I'll be using the Core client, then things start getting a bit fuzzy for  me; I'll use Lightning Network Daemon, then some port forwarding on the router and finally create an automatic reboot with a backup (I believe that's the order for everything)

Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
June 30, 2019, 06:53:10 PM
Merited by Csmiami (1)
 #17

@Farul I will answer your post tomorrow once I have more time to explain it.

Would I be able to run a dual node on the raspberry? (BTC+LN)

Yes, see the last answer for more details.

I understand that to run a node you don't need to have an open channel; am I right?

What node are you reffering to? Bitcoin Core? If so, then the answer is yes. Lightning Network node? You don't have to open channels but then such node doesn't do anything. In order to route payments, you have to open quite a lot of channels.

I'm planing on using a Raspberry PI 3 Model B+ plugged straight to the router, and with a 256gb flash card for the OS (Raspbian).

Raspberry Pi 3B+ is enough to handle Bitcoin Core and Lightning Network node (LND recommended). However, I would recommend you to synchronise with the Bitcoin network on your computer and then copy blockchain data to an external hard drive. Don't use 256 GB memory card. Most of such cards are not designed to handle constant reads and writes. If you haven't bought that model of Raspberry Pi yet then consider buying the latest model (4B) with some extra RAM.
Csmiami
Copper Member
Legendary
*
Offline Offline

Activity: 1596
Merit: 1319


I'm sometimes known as "miniadmin"


View Profile WWW
June 30, 2019, 07:14:55 PM
 #18

What node are you reffering to? Bitcoin Core? If so, then the answer is yes. Lightning Network node? You don't have to open channels but then such node doesn't do anything. In order to route payments, you have to open quite a lot of channels.

Understood, thanks!

Raspberry Pi 3B+ is enough to handle Bitcoin Core and Lightning Network node (LND recommended). However, I would recommend you to synchronise with the Bitcoin network on your computer and then copy blockchain data to an external hard drive. Don't use 256 GB memory card. Most of such cards are not designed to handle constant reads and writes. If you haven't bought that model of Raspberry Pi yet then consider buying the latest model (4B) with some extra RAM.

I have not bought yet the hardware, but my budget is quite limited.
I had thought about the flash card being a problem; and the only feasible solution I could find to that is to use an external HDD (or even SSD) rather than a flash card, connected on USB.

Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
June 30, 2019, 07:23:24 PM
 #19

-snip

Raspberry Pi 4's CPU is much faster than 3B+'s. 1 GB version seems to be priced the same as the third model, at least in my country. If I were you, I would buy 2 GB or 4GB model of Raspberry Pi 4 and HDD rather than 3B+ and SSD. The fourth model has USB 3.0 and gigabit Ethernet unlike previous models. Buy a small SD card only for the OS, either 8 GB or 16 GB one.
Csmiami
Copper Member
Legendary
*
Offline Offline

Activity: 1596
Merit: 1319


I'm sometimes known as "miniadmin"


View Profile WWW
June 30, 2019, 07:41:13 PM
Last edit: June 30, 2019, 09:04:49 PM by Csmiami
 #20

Raspberry Pi 4's CPU is much faster than 3B+'s. 1 GB version seems to be priced the same as the third model, at least in my country. If I were you, I would buy 2 GB or 4GB model of Raspberry Pi 4 and HDD rather than 3B+ and SSD. The fourth model has USB 3.0 and gigabit Ethernet unlike previous models. Buy a small SD card only for the OS, either 8 GB or 16 GB one.

Fair enough; difference seems to be of around 20€ using a 1TB HDD and a 2GB pi 4B and 30 if raspberry of 4G. I'll give it some thought while I wait for the retailer to restock (looks like mid-July  Undecided) and if I happen to come accross any more doubts; I'll try to get them solved!

Thanks for the help!


Edit: Just realized that supply cable was not included; price has gone up a bit to around 80€ on Raspberry 4 4Gb without the HDD, against 40€ of Raspberry 3

Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 ... 78 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!