Ouvrir des canaux

From PlebNet Wiki
Revision as of 19:45, 20 October 2021 by ADssx (talk | contribs) (Created page with "Conseils : la vidéo [https://www.youtube.com/watch?v=qnj-ix45tVw Lightning Routing: The First 30 Days] (« Routage sur Lightning : les 30 premiers jours ») donne de bonnes i...")
Jump to navigation Jump to search
Other languages:
English • ‎français

La première question de tout plébéien après la synchronisation de son nœud : « Avec qui devrais-je ouvrir un canal ? »

Réponse : Avec un mentor qui est disposé à passer du temps à vous aider, vous apprendre les bases, vous former et vous guider pour devenir un meilleur gestionnaire de nœud.

Évidemment, à l'heure de Google, d'internet et de la gratification immédiate, cela peut être mal vu mais rien ne pourra remplacer un bon mentor dans votre parcours pour devenir un gestionnaire de nœud.


Ajouter de la liquidité

Créez un portefeuille Lightning et ajoutez-y de l'argent afin de pouvoir ouvrir des canaux. Ayez en tête que PlebNet préfère les gros canaux : financez votre nœud en conséquence !


Réserve pour les canaux ancre (Anchor Channels)

Si vous utilisez des Anchor Channels (par défaut dans lnd 13.1+) alors lnd conserve vos UTXO sur votre nœud comme une réserve pour les frais d'ouverture (commitment fees). Le montant en réserve est 10k sats multiplié par votre nombre de canaux, avec un maximum de 100k sats.

Si vous avez une seule UTXO (Unspent transaction output) sur votre portefeuille on-chain, vous pouvez rencontrer des difficultés et être dans l'incapacité de dépenser cet UTXO pour ouvrir des canaux. Il est donc recommandé de garder au moins 100k UTXO sur votre portefeuille on-chain.

Pour cela :

  1. Sur le tableau de bord Umber - Bitcoin Wallet, sélectionnez "Deposit". Cela va générer une nouvelle adresse. Copiez cette adresse.
  2. Sélectionnez ensuite "Withdraw". Collez l'adresse générée à l'étape 1 ici et sélectionner un montant de 100000 sats.
  3. Sélectionner des frais bas de 1 sab/vb et envoyez la transaction. Cela va créer un UTXO de 100k sats sur votre nœud qui sera utilisé pour les anchor channels une fois que la transaction aura reçue au moins une confirmation on-chain.


Trouver des nœuds sur le groupe Telegram PlebNet

Si vous n'êtes pas en mesure d'offrir de gros canaux et désirez juste commencer avec de plus petites sommes, Turgidson est un nœud pour les débutants et il accepte les canaux à partir de 20k sats.

Conseils : la vidéo Lightning Routing: The First 30 Days (« Routage sur Lightning : les 30 premiers jours ») donne de bonnes idées.

Otherwise, you’ll need to find some other nodes in PLEBNET to open channels with.

You can go to http://graph.plebnet.org/ to see the current visual graph of nodes, or type /graph@cheeserobot group in the PLEBNET chat. /groupnodes@cheeserobot will output a list of the 50 most recent members and nodes. You can contact plebs form the graph or list and see if they’d like to open a channel.

You can also just ask in the PLEBNET channel if anyone is interested in opening a channel with you.


Other Channel Sources

For a two-way routing, required to both send and receive sats, you need a good balance of inbound and outbound liquidity. Most new node runners end up with a lot of outbound liquidity because they are the ones opening channels. Here is how you can get some inbound liquidity:

  • Make a payment to someone, buy something from a merchant, make a donation to a charity or project which accepts Lightning payment. All of these will move sats from your local to remote and you will naturally get a balanced channel.
  • Make sure you have a node alias (visible on graph - check amboss), have public channels open and have 2-4M capacity, Add BCash_Is_Trash 0298f6074a454a1f5345cb2a7c6f9fce206cd0bf675d177cdbf0ca7508dd28852f or 0298f6074a454a1f5345cb2a7c6f9fce206cd0bf675d177cdbf0ca7508dd28852f@73.119.255.56:9735 as a peer (do not open channel). They might open channel to you.
  • Lightning Network Plus - to create swaps with other node runners. You open a channel to someone and someone else opens a channel to you. You can make a triangle, square, pentagon.
  • Get a balanced channel from ln2me - you open a channel to them and move sats to them (this is an element of trust). After the channel is opened, they pay you back on-chain. It is an implementation of GSS (see blow)
  • Buying from LNBIG with Umbrel - you pay for the inbound liquidity. This can be expensive but is usually a popular route.
  • Ring of Fire - Another swap service similar to LN+
  • Lightning Conductor - They open channel back to you if you open 500K channel to them.
  • Umbrel Opening Channel Requests
  • You can make a payment to your own custodial wallet like WoS, Strike, Munn, Breeze or other swap sites you trust and then you can withdraw BTC on-chain from these wallets. The cost varies a lot and you need to do your research.
  • LOOP out. This is a trustless service to send payment on lightning and receiving on-chain. It can cost a lot and you may have to make a lot of attempts before you get a route.
  • You can ask on PlebNet for plebs to open a channel to you. You can offer to rebalance or cover their costs.
  • You can pay someone to open a channel to you on services like [ https://kriptode.com/satsforlikes/index.html sats4like]

Keep It Girthy

It’s best to have fewer big channels with more sats than it is to have many smaller ones. The recommended minimum channel size is 2 million sats, which will cost you 1 million sats per channel if you are trying to have an even balance of inbound and outbound liquidity.


Balanced Channels

The idea is to have balanced channels. This means that there is an equal amount of sats between each node on the channel.

For example, if Node A opens a channel with Node B for 2m sats, it will start entirely on their end. Node A will want to find a way to have 1m sats on each side of the channel.

There are several different ways to accomplish this.


“Girthy (formerly known as Ghetto) Submarine Swap” (aka: ‘trust-required’ dual-funded channel)

ONLY DO THIS WITH ESTABLISHED AND TRUSTED PLEBNET NODES! IT IS POSSIBLE TO LOSE SATS DOING THIS.

  1. Node A opens a channel with X sats.
  2. Node B sends a Lightning invoice for half of the amount X sats that was opened on the channel
  3. The Node A operator sends the address of their preferred on-chain Bitcoin wallet to the operator of Node B
  4. The Node B operator sends half of the amount X sats of the opened channel to the Bitcoin wallet of the operator of Node A from step 3
  5. Node A pays the Lightning invoice

In some other versions, the swap is executed as below

  1. you agree with NODE B you trust to open a 2X channel and at the time of open you push X towards them (i.e you gift them X on LN)
  2. In return NODE B pay X back to you at your on-chain address. (this is based on trust. Usually, people are honourable because they don't want to spoil their reputation for a few dollars but you never know).
  3. End result you have a 2X channel with X local X remote. And you have X on-chain to open another channel.


MEG (aka: ‘trustless’ dual-funded channel) - Mutually Exchanged Girth

With the support for internal funding added, adding balanced channel is now a piece of cake. All you need is a willing peer.

Alex Bosworth’s CLI tool, Balance of Satoshis utilizes keysend to add this functionality to LND (which does not natively support it, yet)

Please also ensure that your boss 10.10.2 or higher and node.js/npm software is up to date before attempting this.
Pre-req:  make sure NODE 1 and NODE 2 have keysend enabled (this is the default for Umbrel) and at least 1 channel already established to integrate you into the lightning network (you need a path out for key send to new peering node for the whole process to work)
(NODE 1: Alice) (0) Run: bos open-balanced-channel (1) enter remote node public key (2) enter full channel size (3) enter fee rate (4) select Y if you want to fund from internal (node wallet) or else use an external wallet to provide the signed transaction for the exact details provided. copy the signed_transaction if you followed external funding.
(NODE 2: Bob) (0) Run: bos open-balanced-channel (it should see the request from node1 at this point) (1) agree with funding rate (y/n) (2) press Y for internal funding (node wallet) or else use an external wallet to provide the signed transaction for the exact details provided. copy the signed_transaction if you followed external funding. (3) hit enter and this should work.
check via: lncli pendingchannels