Why Nostr? What is Njump?
2023-06-09 12:48:02
in reply to

Stan Kladko [ARCHIVE] on Nostr: 📅 Original date posted:2017-12-13 📝 Original message: > If you have a reason to ...

📅 Original date posted:2017-12-13
📝 Original message:
> If you have a reason to open a channel to an arbitrary node, then other nodes have a reason to open a channel to an arbitrary node, which might be you. Even if the network grows large, that > also means there are more participants who might decide, via whatever heuristic, to channel to your node.

If I am connected to some nodes, but no one connected to me, then all
of my deposit is used by me only, and is not used by other nodes.
If I am routing nodes through my node, then it can potentially
negatively affect availability of my deposit for my own transactions.
So it seems to me that the best strategy is to connect but accept no
incoming connections.

How much real is this problem?



On Wed, Dec 13, 2017 at 10:58 AM,
<lightning-dev-request at lists.linuxfoundation.org> wrote:
> Send Lightning-dev mailing list submissions to
> lightning-dev at lists.linuxfoundation.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev
> or, via email, send a message with subject or body 'help' to
> lightning-dev-request at lists.linuxfoundation.org
>
> You can reach the person managing the list at
> lightning-dev-owner at lists.linuxfoundation.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Lightning-dev digest..."
>
>
> Today's Topics:
>
> 1. Peer selection (Stan Kladko)
> 2. Re: Peer selection (ZmnSCPxj)
> 3. Re: LN public marketplaces (exchanges) (ZmnSCPxj)
> 4. Re: Peer selection (Stan Kladko)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 12 Dec 2017 17:32:12 +0200
> From: Stan Kladko <stan.kladko at galacticexchange.io>
> To: lightning-dev at lists.linuxfoundation.org
> Subject: [Lightning-dev] Peer selection
> Message-ID:
> <CA+Zg=czbP+UBSsigXF1Gzq+HZGPKAuy8wFpFnX4swY6fR3KqEQ at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> I have been reading LN specs, one question that I am trying to answer
> is how do I find a peer
> for my lightning connections.
>
> Lets say I want to connect to the network with 6 links, each having $100.
>
> 1. How do I select the nodes to peer with?
>
> 2. How do I make them to do deposits - ideally I want them to match $100 each.
> But since they are presumably already sufficiently connected to
> the network, why would they lock more funds?
>
> 3. How do I find out if someone wants to connect to me?
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 12 Dec 2017 19:36:24 -0500
> From: ZmnSCPxj <ZmnSCPxj at protonmail.com>
> To: Stan Kladko <stan.kladko at galacticexchange.io>
> Cc: "lightning-dev at lists.linuxfoundation.org"
> <lightning-dev at lists.linuxfoundation.org>
> Subject: Re: [Lightning-dev] Peer selection
> Message-ID:
> <QUTEyN8gbg0ndyb38Q5-WkyCrooI8ptcnQTVeeoFAK3OGp3NVPfaLkzd8G1iUpeSLy1txlbMW6MORSZaF02CeJ8C8rgt5Ej1AMxqomN_BxM=@protonmail.com>
>
> Content-Type: text/plain; charset="utf-8"
>
> Good morning Stan,
>
>>1. How do I select the nodes to peer with?
>
> By whatever selection criteria you wish.
>
> In practice, lnd offers an "auto-pilot" where it selects peers to channel with automatically using some heuristic (which I do not know). My understanding, c-lightning will eventually offer a similar feature at some point in the future.
>
> Presumably node gossip will let you learn of other nodes that you might channel with in the future.
>
>>2. How do I make them to do deposits - ideally I want them to match $100 each.
>
> Currently, channels are initially single-funded. There is a proposal https://github.com/lightningnetwork/lightning-rfc/pull/184 for dual-funded channel setup, but did not make it into 1.0.
>
>>But since they are presumably already sufficiently connected to
>>the network, why would they lock more funds?
>
> It helps to consider that you are not particularly special, and neither are the existing nodes on the network particularly special.
>
> If you have a reason to open a channel to an arbitrary node, then other nodes have a reason to open a channel to an arbitrary node, which might be you. Even if the network grows large, that also means there are more participants who might decide, via whatever heuristic, to channel to your node.
>
> If you intend to connect for the purpose of becoming a hub and earning routing fees, if you have some onchain bitcoins you can afford to invest, then it is to your interest to channel with relatively new and low-connectivity nodes. Such nodes might receive payments and if you are one of the few routes (or the only route) you then get a higher chance of being routed through. Inverting this, if you have a new node with a few channels, others aspiring to become hubs will want to lock spare funds to channel to your node in case you become a very prolific user (sender or receiver) of the network in the future.
>
>>3. How do I find out if someone wants to connect to me?
>
> The node connects to yours and sends channel funding messages.
>
> Regards,
> ZmnSCPxj
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20171212/c8e87abc/attachment-0001.html>;
>
> ------------------------------
>
> Message: 3
> Date: Tue, 12 Dec 2017 20:19:00 -0500
> From: ZmnSCPxj <ZmnSCPxj at protonmail.com>
> To: "U.Mutlu" <um4711 at mutluit.com>
> Cc: "lightning-dev at lists.linuxfoundation.org"
> <lightning-dev at lists.linuxfoundation.org>
> Subject: Re: [Lightning-dev] LN public marketplaces (exchanges)
> Message-ID:
> <l2X2PcULcdRd86iLthJttYfey1v8Vp3gZ9QQEkN4rSZ6wKx1LjLhejYF0LcnI6m1aOkplYVYRGYbNqqxKfMK0l_juZdkYNuAuyy6ctoQxXw=@protonmail.com>
>
> Content-Type: text/plain; charset="utf-8"
>
> Good Morning,
>
> My understanding of your idea is the below:
>
> 1. I set up as a middleman from the base blockchain to the LN.
> 2. You send me an onchain transaction plus a fee and after 0 confirmations (!! risk) I send to the recipient on LN.
>
> But please consider that you could run an LN node yourself, open a channel (and spend any fees you might have paid to me in the channel opening) and then sent to the recipient on LN yourself. Further, you can afterwards make future payments to LN for low fees yourself, without having to make a new onchain transaction each time. So I see no benefit to you using this service.
>
> Regards,
> ZmnSCPxj
>
> -------- Original Message --------
> Subject: Re: [Lightning-dev] LN public marketplaces (exchanges)
> Local Time: December 12, 2017 7:08 AM
> UTC Time: December 11, 2017 11:08 PM
> From: um4711 at mutluit.com
> To: lightning-dev at lists.linuxfoundation.org
>
> Christian Decker wrote on 12/11/2017 11:59 AM:
> Not sure I fully understand the use-case you are referring to. Is this
> supposed to be a short-term loan to get a bill paid or is this supposed
> to facilitate muli-hop payments? In the former case there is no support
> for it yet, since all of the payments in LN are always fully backed by
> Bitcoin. In the latter case, I don't see how that differs from the
> multi-hop payments we already do.
>
> I must admit I'm new to LN and don't know yet if it can be used
> in setting up such a scenario:
>
> A bitcoin transaction usually takes at least 10 minutes for confirmation.
> An instant payment could be realised if a middleman pays out the amount
> to the receiver immediately, and gets his money back from the original
> sender the normal way (ie. waiting the 10+ minutes).
>
> The middlemen (ie. other users) would announce their such service at
> a marketplace (the highest amount he/she is willing to overtake plus
> the fees he/she wants). With each transaction, Bitcoin would pick
> the best offer from the orderbook of the maketplace and process the
> transaction that way (ie. swapping the receiver by the middleman).
>
> The advantages: the receiver gets the money instantly,
> and any user can play middleman (hence an exchange for it),
> the middlemen earn from the fees, exchanges get established, ...
>
> Just an idea...
>
> Lightning-dev mailing list
> Lightning-dev at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20171212/ea69fedd/attachment-0001.html>;
>
> ------------------------------
>
> Message: 4
> Date: Wed, 13 Dec 2017 10:58:21 +0200
> From: Stan Kladko <stan.kladko at galacticexchange.io>
> To: ZmnSCPxj <ZmnSCPxj at protonmail.com>
> Cc: "lightning-dev at lists.linuxfoundation.org"
> <lightning-dev at lists.linuxfoundation.org>
> Subject: Re: [Lightning-dev] Peer selection
> Message-ID:
> <CA+Zg=cwRD-YKtXYjg+0K6Q75E77gS5quON456wGbnTb7R-5-ag at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> I see - thank you.
>
> How to I discover nodes - is there any UI to see nodes currently
> running on the network ?
>
>> 3. How do I find out if someone wants to connect to me?
>> The node connects to yours and sends channel funding messages.
>
> In this case there is some kind of an UI where I can accept or reject - correct?
> Or I auto-accept everyone that connects to me?
>
>> If you intend to connect for the purpose of becoming a hub and earning routing fees, if you have some onchain bitcoins you can afford to invest, then it is to your interest to channel with relatively new and low-connectivity nodes.
>
> If I become a hub, how much to I earn, approximately in routing fees?
> Is it a percentage of transactions? Are routing fees the same for all
> hubs?
>
> If I am connecting to the network and see many hubs - how can I select
> which hub to connect to? Is there any performance/reputation info
> available for any hub?
>
>
>
>
> On Wed, Dec 13, 2017 at 2:36 AM, ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote:
>> Good morning Stan,
>>
>>>1. How do I select the nodes to peer with?
>>
>> By whatever selection criteria you wish.
>>
>> In practice, lnd offers an "auto-pilot" where it selects peers to channel
>> with automatically using some heuristic (which I do not know). My
>> understanding, c-lightning will eventually offer a similar feature at some
>> point in the future.
>>
>> Presumably node gossip will let you learn of other nodes that you might
>> channel with in the future.
>>
>>>2. How do I make them to do deposits - ideally I want them to match $100
>>> each.
>>
>> Currently, channels are initially single-funded. There is a proposal
>> https://github.com/lightningnetwork/lightning-rfc/pull/184 for dual-funded
>> channel setup, but did not make it into 1.0.
>>
>>>But since they are presumably already sufficiently connected to
>>>the network, why would they lock more funds?
>>
>> It helps to consider that you are not particularly special, and neither are
>> the existing nodes on the network particularly special.
>>
>> If you have a reason to open a channel to an arbitrary node, then other
>> nodes have a reason to open a channel to an arbitrary node, which might be
>> you. Even if the network grows large, that also means there are more
>> participants who might decide, via whatever heuristic, to channel to your
>> node.
>>
>> If you intend to connect for the purpose of becoming a hub and earning
>> routing fees, if you have some onchain bitcoins you can afford to invest,
>> then it is to your interest to channel with relatively new and
>> low-connectivity nodes. Such nodes might receive payments and if you are one
>> of the few routes (or the only route) you then get a higher chance of being
>> routed through. Inverting this, if you have a new node with a few channels,
>> others aspiring to become hubs will want to lock spare funds to channel to
>> your node in case you become a very prolific user (sender or receiver) of
>> the network in the future.
>>
>>>3. How do I find out if someone wants to connect to me?
>>
>> The node connects to yours and sends channel funding messages.
>>
>> Regards,
>> ZmnSCPxj
>
>
> ------------------------------
>
> _______________________________________________
> Lightning-dev mailing list
> Lightning-dev at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev
>
>
> End of Lightning-dev Digest, Vol 28, Issue 9
> ********************************************
Author Public Key
npub1hd494269aenxtnartkwdlwcsa2xvuhtfaufh9kpetuz4m4n86q3qkv3wes