Let’s create a routing LND node, part 6 - Opening more channels

Series: Let’s create a routing LND node

Supporting this series

If you want to support this series, you can:

  • Use tippin.me to send me a tip.
  • Use Tootmoney to ask for a Lightning invoice. On Mastodon, just send a toot like ‘@OpinionatedGeek #TootMoney #send 10000’ to have it reply with an invoice QR code.
  • Send bitcoin to this address: bc1qsaampnjm5ykcpd40pstcewt75xrtfy5cxpnpdf

More channels

Let’s open some more channels.

I’m still trying to achieve a balance between reach and necessity, but I’m not sure how best to achieve that balance.

I’d like to have some more connections to nodes that will expand my reach - make more nodes available in just a couple of hops. Moneni’s NodeMatch still looks like a good tool to help here.

I’d also like to hook into under-served clusters of nodes. They’re the ones that actually need liquidity and are the ones I most want to help. But I don’t know how to find such groups. I don’t want to just pick random nodes that have few connections - that way seems like it would just end with under-used channels.

So I’m going to open 10 channels at 1million sats each - 5 from Moneni’s NodeMatch list, and 5 underserved clusters.

NodeMatch for my node is dominated by LNBIG nodes. I’ve removed them all from this list because:

  • I think opening a channel with more than one of them would make all the others in the list disappear. (LNBIG’s nodes are all interconnected.)
  • I’m kinda hoping LNBIG will open a channel with me at some point, since they usually open a channel with everyone.

So with LNBIG removed, here are the top 5 NodeMatches:

Rank 1. Sagittarius A (Would add 397 more nodes with two hops , 1508 more nodes with three hops , 2251 more nodes with four hops)
Rank 9. ACINQ (Would add 269 more nodes with two hops , 1218 more nodes with three hops , 2303 more nodes with four hops)
Rank 10. 1ML.com node ALPHA (Would add 254 more nodes with two hops , 1137 more nodes with three hops , 2301 more nodes with four hops)
Rank 17. LightningTo.Me (Would add 231 more nodes with two hops , 1290 more nodes with three hops , 2268 more nodes with four hops)
Rank 21. ln.BitSoapBox.com (Would add 219 more nodes with two hops , 1339 more nodes with three hops , 2213 more nodes with four hops)

$ lncli openchannel --node_key 03a503d8e30f2ff407096d235b5db63b4fcf3f89a653acb6f43d3fc492a7674019 --connect 37.59.50.48:9735 --local_amt 1000000

{

"funding_txid": "6eae3850952fc1c6e9939c86e122c9644c31e177dc12254ce56f4e5216f82aff"

}

$ lncli openchannel --node_key 03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f --connect 34.239.230.56:9735 --local_amt 1000000

{

"funding_txid": "6a084acfdbcf69b0bf6f48e41352c75598a3f9a21d94871c7e6cebb5c572b824"

}

$ lncli openchannel --node_key 0217890e3aad8d35bc054f43acc00084b25229ecff0ab68debd82883ad65ee8266 --connect 23.237.77.11:9735 --local_amt 1000000

{

"funding_txid": "e72bf885048324a0c181e19df00b026894c6148bdb7115f5a76b01d86c0cb838"

}

$ lncli openchannel --node_key 03bb88ccc444534da7b5b64b4f7b15e1eccb18e102db0e400d4b9cfe93763aa26d --connect 138.68.14.104:9735 --local_amt 1000000

{

"funding_txid": "489d2ef2b904ec0b0687517ad52451f868987f13b2073b5cc1b807c3f0d61c95"

}

$ lncli openchannel --node_key 021607cfce19a4c5e7e6e738663dfafbbbac262e4ff76c2c9b30dbeefc35c00643 --connect 138.201.60.38:9735 --local_amt 1000000

{

"funding_txid": "e9b82ef41479d2d7b4782681f824062bfbe605161dac735e6afcbe9794db0325"

}


I’d love to have an automated way of finding good clusters of nodes to connect with, but the best way I’ve found so far is to load up a Lightning Network visualiser and try to spot them by eye. If you know of a better way, please do let me know!

I loaded 1ml.com’s visualiser and tried to spot nodes away from the centre that had more than 20 channels but fewer than 50. Plenty to choose from, but here’s my selection:

blackgold: 02f40890af885da4673f0ee9725ee74bb2c66d6491cc4334056a2701057993e61d
VIX8: 03f8ab9b7496be92ce370e0224661d5d2de80bca8f505d66f1226d0e6002007d2a
SLL: 039401f72bc0d40efb58b01de15527a2a5ae1943d7c29067b725a1467a93c7e66f
NSCasa: 0396632392e7902dfbc83c46831f921842a93d8cbc68232eb90b4d723230bcec59
ln.taborsky.cz: 0265fae305778b7cb157365f70cf3a2047d2cad5c1ccc5f550c6d8a033084a8ea5

$ lncli openchannel --node_key 02f40890af885da4673f0ee9725ee74bb2c66d6491cc4334056a2701057993e61d --connect 88.198.91.250:9735 --local_amt 1000000

{

"funding_txid": "be6b41a4011edda57dea3e737a06c98cee73a9aa717b2658578bdfeb92037f97"

}

...and that’s where things stalled. Now things have been sitting for hours with an unconfirmed balance:

$ watch -n 30 lncli walletbalance

Every 30.0s: lncli walletbalance

{

"total_balance": "36379183",

"confirmed_balance": "980156",

"unconfirmed_balance": "35399027"

}

So most of my wallet balance is now tied up as inputs to transactions that haven’t been added to any blocks in the chain yet. Oh well. I guess I’ll pause there for the day.

Autopilots

Rene Pickhardt has implemented autopilot functionality for c-lightning. It can use the following heuristics:

  1. Random: following the Erdoes Renyi model nodes are drawn from a uniform distribution
  2. Central: nodes are sampled from a distribution proportional to the betweeness centrality of nodes
  3. Decrease Diameter: nodes are sampled from distribution of the nodes which favors badly connected nodes
  4. Richness: nodes with high liquidity are taken and it is sampled from a uniform distribution of those

I like the idea of those heuristics!

LND has autopilot functionality but it’s not yet recommended for mainnet. As far as I can tell, it uses ‘BOS scores’ as an opaque scoring mechanism for nodes, where higher numbers are better. I’ve no idea what the BOS score of my node is though (it doesn’t appear on either of the sites that say they’ll tell you your BOS score) or what the BOS scores of other nodes are.

I do worry that everything is trying to do too much though. One of the reasons I’m writing lntoolkit is as a reaction to all the monolithic code that’s appearing. An autopilot for LND is a good idea, but does it really need to be built in to LND? Why not just have a separate program that calls into LND? Keep that program simple, keep LND simple.

Maybe it’s just me that likes the predictability of having an autopilot with specific, configured heuristics and boundaries that runs as a cron job and calls LND’s public API. I think predictability is far too unappreciated these days.

Finally, as usual here'’s the current report:

OpinionatedGeek ⚡ - synced: ✅

Total Balance: 49,679,612 satoshi, Wallet: 36,379,183 satoshi (980,156 satoshi/35,399,027 satoshi)

Fees: 4 this month, 4 this week, 3 today

Channels: 13 active, 0 inactive, 2 pending, containing: 13,300,429 satoshi

Version: 0.6.0-beta commit=v0.6-beta-dirty

URI: 023c5b5667b16cd7fcca5591a8c0f47beb76c9405e16a4f2d6b42c7b9904a7f0e6@95.179.191.59:9735

Pending - Open:

⭕ 🚶 ln.BitSoapBox.com: 0 (Last update: 13:42 UTC on Monday, 6 May 2019)

Pubkey: 021607cfce19a4c5e7e6e738663dfafbbbac262e4ff76c2c9b30dbeefc35c00643

Fees: --+--/-- / --+--/--

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 992,052 / 0 [capacity: 1,000,000]

⭕ 🚶 blackgold: 0 (Last update: 14:29 UTC on Tuesday, 30 April 2019)

Pubkey: 02f40890af885da4673f0ee9725ee74bb2c66d6491cc4334056a2701057993e61d

Fees: --+--/-- / --+--/--

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 992,050 / 0 [capacity: 1,000,000]

Pending - Close:

None.

Pending - Force Close:

None.

Pending - Waiting To Close:

None.

Unbalanced - High:

✅ 👪 LightningTo.Me: 632050960802447360 (Last update: 13:42 UTC on Monday, 6 May 2019)

Pubkey: 03bb88ccc444534da7b5b64b4f7b15e1eccb18e102db0e400d4b9cfe93763aa26d

Fees: 1,000+1/40 / 1,000+1/40

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 991,210 / 0 [capacity: 1,000,000]

✅ 👪 BitMEXResearch: 631655136611991552 (Last update: 22:03 UTC on Sunday, 5 May 2019)

Pubkey: 0395033b252c6f40e3756984162d68174e2bd8060a129c0d3462a9370471c6d28f

Fees: 1,000+1/40 / 1+10/40

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 989,856 / 0 [capacity: 1,000,000]

✅ 👪 Sagittarius A: 632050960773152769 (Last update: 13:43 UTC on Monday, 6 May 2019)

Pubkey: 03a503d8e30f2ff407096d235b5db63b4fcf3f89a653acb6f43d3fc492a7674019

Fees: 1,000+1/40 / 1,000+1/40

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,771 / 0 [capacity: 1,000,000]

✅ 👪 ACINQ: 632050960761552897 (Last update: 09:11 UTC on Monday, 29 April 2019)

Pubkey: 03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f

Fees: 1,000+1/40 / 1,000+100/144

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,771 / 0 [capacity: 1,000,000]

✅ 👪 1ML.com node ALPHA: 632050960770990080 (Last update: 13:43 UTC on Monday, 6 May 2019)

Pubkey: 0217890e3aad8d35bc054f43acc00084b25229ecff0ab68debd82883ad65ee8266

Fees: 1,000+1/40 / 1,000+1/144

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,771 / 0 [capacity: 1,000,000]

Unbalanced - Low:

✅ 🚶 03f175627ecd2b736fdd: 631605658598703105 (Last update: 14:20 UTC on Friday, 3 May 2019)

Pubkey: 03f175627ecd2b736fdd29f40414c02169716f884b4b45762483142ed81834141c

Fees: 1,000+1/40 / 1,000+1/40

Balances: [🥕🥕🥕🥕🥕🥕🥕🥕🥕🥕] 96,416 / 1,036,619 [capacity: 1,144,265]

All Channels:

✅ 👪 LightningTo.Me: 632050960802447360 (Last update: 13:42 UTC on Monday, 6 May 2019)

Pubkey: 03bb88ccc444534da7b5b64b4f7b15e1eccb18e102db0e400d4b9cfe93763aa26d

Fees: 1,000+1/40 / 1,000+1/40

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 991,210 / 0 [capacity: 1,000,000]

✅ 👪 BitMEXResearch: 631655136611991552 (Last update: 22:03 UTC on Sunday, 5 May 2019)

Pubkey: 0395033b252c6f40e3756984162d68174e2bd8060a129c0d3462a9370471c6d28f

Fees: 1,000+1/40 / 1+10/40

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 989,856 / 0 [capacity: 1,000,000]

✅ 👪 Sagittarius A: 632050960773152769 (Last update: 13:43 UTC on Monday, 6 May 2019)

Pubkey: 03a503d8e30f2ff407096d235b5db63b4fcf3f89a653acb6f43d3fc492a7674019

Fees: 1,000+1/40 / 1,000+1/40

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,771 / 0 [capacity: 1,000,000]

✅ 👪 ACINQ: 632050960761552897 (Last update: 09:11 UTC on Monday, 29 April 2019)

Pubkey: 03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f

Fees: 1,000+1/40 / 1,000+100/144

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,771 / 0 [capacity: 1,000,000]

✅ 👪 1ML.com node ALPHA: 632050960770990080 (Last update: 13:43 UTC on Monday, 6 May 2019)

Pubkey: 0217890e3aad8d35bc054f43acc00084b25229ecff0ab68debd82883ad65ee8266

Fees: 1,000+1/40 / 1,000+1/144

Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,771 / 0 [capacity: 1,000,000]

✅ 👪 Bitrefill.com: 631589165900038144 (Last update: 09:37 UTC on Monday, 6 May 2019)

Pubkey: 030c3f19d742ca294a55c00376b3b355c3c90d61c6b6b39554dbc7ac19b141c14f

Fees: 1,000+1/40 / 4,000+40/144

Balances: [🥝🥝🥝🥝🥝🥝🥝🥕🥕🥕] 2,996,699 / 992,071 [capacity: 4,000,000]

✅ 👪 CoinGate: 631562777641943040 (Last update: 12:28 UTC on Monday, 6 May 2019)

Pubkey: 0242a4ae0c5bef18048fbecf995094b74bfb0f7391418d71ed394784373f41e4f3

Fees: 1,000+1/40 / 1,000+1/40

Balances: [🥝🥝🥝🥝🥝🥕🥕🥕🥕🥕] 507,799 / 482,056 [capacity: 1,000,000]

✅ 👪 powernode.io: 631589165899972608 (Last update: 01:28 UTC on Monday, 6 May 2019)

Pubkey: 02809e936f0e82dfce13bcc47c77112db068f569e1db29e7bf98bcdd68b838ee84

Fees: 1,000+1/40 / 0+100/40

Balances: [🥝🥝🥝🥝🥕🥕🥕🥕🥕🥕] 996,709 / 992,061 [capacity: 2,000,000]

✅ 👪 LightningPowerUsers.com: 631590265456689152 (Last update: 05:58 UTC on Monday, 6 May 2019)

Pubkey: 0331f80652fb840239df8dc99205792bba2e559a05469915804c08420230e23c7c

Fees: 1,000+1/40 / 1,000+1/40

Balances: [🥝🥝🥝🥝🥕🥕🥕🥕🥕🥕] 496,710 / 492,060 [capacity: 1,000,000]

✅ 👪 ln1.satoshilabs.com: 631652937637363712 (Last update: 15:32 UTC on Monday, 6 May 2019)

Pubkey: 0279c22ed7a068d10dc1a38ae66d2d6461e269226c60258c021b1ddcdfe4b00bc4

Fees: 1,000+1/40 / 0+1,000/144

Balances: [🥝🥝🥝🥝🥕🥕🥕🥕🥕🥕] 496,215 / 492,555 [capacity: 1,000,000]

✅ 👪 lightning-roulette.com: 631563877105729536 (Last update: 18:14 UTC on Sunday, 5 May 2019)

Pubkey: 031678745383bd273b4c3dbefc8ffbf4847d85c2f62d3407c0c980430b3257c403

Fees: 1,000+1/40 / 1,000+1/40

Balances: [🥝🥝🥝🥝🥕🥕🥕🥕🥕🥕] 486,712 / 502,058 [capacity: 1,000,000]

✅ 👪 rompert.com🔵: 631590265456623616 (Last update: 16:27 UTC on Sunday, 5 May 2019)

Pubkey: 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b

Fees: 1,000+1/40 / 0+1/144

Balances: [🥝🥝🥕🥕🥕🥕🥕🥕🥕🥕] 291,688 / 697,082 [capacity: 1,000,000]

✅ 🚶 03f175627ecd2b736fdd: 631605658598703105 (Last update: 14:20 UTC on Friday, 3 May 2019)

Pubkey: 03f175627ecd2b736fdd29f40414c02169716f884b4b45762483142ed81834141c

Fees: 1,000+1/40 / 1,000+1/40

Balances: [🥕🥕🥕🥕🥕🥕🥕🥕🥕🥕] 96,416 / 1,036,619 [capacity: 1,144,265]


Tags: Lightning
Created by on Logo15659OpinionatedGeek Ltd.Logo15659