Series: Let’s create a routing LND node
Probing routes
Opening the channels I couldn’t yesterday
I finished opening the channels I found yesterday, with the following commands and results:
$ lncli openchannel --node_key 03f8ab9b7496be92ce370e0224661d5d2de80bca8f505d66f1226d0e6002007d2a --connect 84.72.189.230:9735 --local_amt 1000000
{
"funding_txid": "dd2668808081af3a6a5f718634c0306b727c983bf7a3123d42df1089fe8043ed"
}
$ lncli openchannel --node_key 039401f72bc0d40efb58b01de15527a2a5ae1943d7c29067b725a1467a93c7e66f --connect 2.238.144.76:9735 --local_amt 1000000
{
"funding_txid": "25c6938baf5ac10cab7ad8c7319dc40cf33204622d530a95bd4cf433d036d4fc"
}
$ lncli openchannel --node_key 0396632392e7902dfbc83c46831f921842a93d8cbc68232eb90b4d723230bcec59 --connect 121.200.19.225:9735 --local_amt 1000000
[lncli] rpc error: code = Unknown desc = dial tcp 121.200.19.225:9735: connect: connection timed out
$ lncli openchannel --node_key 0265fae305778b7cb157365f70cf3a2047d2cad5c1ccc5f550c6d8a033084a8ea5 --connect 37.205.8.78:9735 --local_amt 1000000
{
"funding_txid": "9e66cdd9295cad9e275d988c8e2ddc1a8455cbd3251844004385d1d58c23fbd7"
}
NSCasa just failed to connect. Oh well. I got a different node from 1ml’s visualiser:
hirish-ln: 036d81bb87af589f949dec53af1b3121c84048d0913eb56945cbbb62c5cb4fcb6f
$ lncli openchannel --node_key 036d81bb87af589f949dec53af1b3121c84048d0913eb56945cbbb62c5cb4fcb6f --connect 5.135.34.152:9735 --local_amt 1000000
{
"funding_txid": "acfdb5872f921884e0e3321baf67fe4c0223e59be0e0eee3a0e9aa1ec5d6e97f"
}
A few more payments routed
I routed a few more payments since yesterday. I think. Fees show something but fwdinghistory doesn’t:
lncli fwdinghistory
{
"forwarding_events": [
],
"last_offset_index": 0
}
I’m curious what’s going on here.
Probing routes
I did a bit more work on ‘probing’ - sending a pseudo-invoice to a destination to see if it gets there successfully (if it does, it fails with a particular error that we can look for). This allows us to see if every node on the path can route the payment without us actually having to make the payment.
What’s more, if it fails you can do it using progressively shorter paths to find out exactly which node is failing to route the payment.
I think this is pretty cool!
I’ve been working on a probe-routes command for lntoolkit, and it’s at the sortof-working stage. Here’s the result of probing a path from my node to yalls.org:
$ lntoolkit probe-routes --max-fees 100000 --amount 100000 --max-routes 1 --from 632050960802447360 --to 631722206824824832 --to-pub-key 03e50492eab4107a773141bb419e107bda3de3d55652e6e1a41225f06a0bbf2d56 --quiet
Probe results for path of 100000 sats from: 632050960802447360 to: 631722206824824832
⚡ OpinionatedGeek ⚡ (15 channels)
✅ Hop 1 (100000 sats): SUCCESS
Channel ID: 632050960802447360, Capacity: 1000000
Src: 023c5b5667b16cd7fcca5591a8c0f47beb76c9405e16a4f2d6b42c7b9904a7f0e6 -
Dst: 03bb88ccc444534da7b5b64b4f7b15e1eccb18e102db0e400d4b9cfe93763aa26d
⚡ LightningTo.Me (708 channels)
✅ Hop 2 (100000 sats): SUCCESS
Channel ID: 631722206824824832, Capacity: 6000000
Src: 03bb88ccc444534da7b5b64b4f7b15e1eccb18e102db0e400d4b9cfe93763aa26d -
Dst: 03e50492eab4107a773141bb419e107bda3de3d55652e6e1a41225f06a0bbf2d56
⚡ yalls.org (348 channels)
Probe successful! 😅
So I can successfully route a payment of 100000sats to Yalls if I need to.
Here’s how it looks when it fails. Let’s try another route, this time to LivingRoomofSatoshi.com:
$ lntoolkit probe-routes --max-fees 100000 --amount 100000 --max-routes 1 --from 632050960802447360 --to 623781533841948673 --to-pub-key 026b105ac13212c48714c6be9b11577a9ce10f10e1c88a45ce217e6331209faf8b --quiet
Probe results for path of 100000 sats from: 632050960802447360 to: 623781533841948673
⚡ OpinionatedGeek ⚡ (19 channels)
✅ Hop 1 (100000 sats): SUCCESS
Channel ID: 632050960802447360, Capacity: 1000000
Src: 023c5b5667b16cd7fcca5591a8c0f47beb76c9405e16a4f2d6b42c7b9904a7f0e6 -
Dst: 03bb88ccc444534da7b5b64b4f7b15e1eccb18e102db0e400d4b9cfe93763aa26d
⚡ LightningTo.Me (708 channels)
❌ Hop 2 (100000 sats): FAILURE - Unknown Error - FinalIncorrectCltvExpiry
Channel ID: 627773860551655424, Capacity: 16000000
Src: 03bb88ccc444534da7b5b64b4f7b15e1eccb18e102db0e400d4b9cfe93763aa26d -
Dst: 03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f
⚡ ACINQ (803 channels)
❌ Hop 3 (100000 sats): FAILURE - Fee Insufficient
Channel ID: 631131769039159296, Capacity: 1000000
Src: 03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f -
Dst: 025a14b8ed40583d67aec92da19453e0b2d1fbbf75f96f85d3dd0ff61a51ee0490
⚡ CARNIKAVA (26 channels)
❌ Hop 4 (100000 sats): FAILURE - Fee Insufficient
Channel ID: 629939898501169153, Capacity: 5000000
Src: 025a14b8ed40583d67aec92da19453e0b2d1fbbf75f96f85d3dd0ff61a51ee0490 -
Dst: 02e9046555a9665145b0dbd7f135744598418df7d61d3660659641886ef1274844
⚡ SilentBob (62 channels)
❌ Hop 5 (100000 sats): FAILURE - Fee Insufficient
Channel ID: 623781533841948673, Capacity: 4200000
Src: 02e9046555a9665145b0dbd7f135744598418df7d61d3660659641886ef1274844 -
Dst: 026b105ac13212c48714c6be9b11577a9ce10f10e1c88a45ce217e6331209faf8b
⚡ LivingRoomofSatoshi.com (27 channels)
Probe failed at hop 2 with Unknown Error - FinalIncorrectCltvExpiry
You can see the first failure in the path was ‘FinalIncorrectCltvExpiry’ - this may be due to a change in CLTV on that node that hasn’t propagated to my node yet, or it’s a bug in lntoolkit. In any case, you can see which node is causing the problem and can choose to take that information into account when opening or closing channels.
The pathfinding code I wrote for lntoolkit works with channels, rather than nodes - that’s usually what I want for moving balances around. It doesn’t work so well here - I’d rather not have to specify the channels in the probe-routes command. I’d have to update my pathfinding code for that, but, y’know, not today.
I have put the latest code into the LNToolkit docker image (testnet only) if you want to try it out.
And finally, here’s the latest report:
OpinionatedGeek ⚡ - synced: ✅
Total Balance: 49,590,737 satoshi, Wallet: 32,346,645 satoshi (32,346,645 satoshi/0 satoshi)
Fees: 4 this month, 4 this week, 3 today
Channels: 18 active, 1 inactive, 0 pending, containing: 17,244,092 satoshi
Version: 0.6.0-beta commit=v0.6-beta-dirty
URI: 023c5b5667b16cd7fcca5591a8c0f47beb76c9405e16a4f2d6b42c7b9904a7f0e6@95.179.191.59:9735
Pending:
None.
Unbalanced - High:
✅ 👪 BitMEXResearch: 631655136611991552 (Last update: 21:31 UTC on Monday, 6 May 2019)
Pubkey: 0395033b252c6f40e3756984162d68174e2bd8060a129c0d3462a9370471c6d28f
Fees: 1,000+1/40 / 1+10/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,773 / 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]
✅ 👪 LightningTo.Me: 632050960802447360 (Last update: 07:22 UTC on Tuesday, 7 May 2019)
Pubkey: 03bb88ccc444534da7b5b64b4f7b15e1eccb18e102db0e400d4b9cfe93763aa26d
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,771 / 0 [capacity: 1,000,000]
✅ 👪 Sagittarius A: 632050960773152769 (Last update: 11:15 UTC on Tuesday, 7 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]
✅ 👪 ln.BitSoapBox.com: 632113632926957568 (Last update: 22:49 UTC on Monday, 6 May 2019)
Pubkey: 021607cfce19a4c5e7e6e738663dfafbbbac262e4ff76c2c9b30dbeefc35c00643
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,760 / 0 [capacity: 1,000,000]
✅ 👪 blackgold: 632112533487681536 (Last update: 22:29 UTC on Monday, 6 May 2019)
Pubkey: 02f40890af885da4673f0ee9725ee74bb2c66d6491cc4334056a2701057993e61d
Fees: 1,000+1/40 / 250+10/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,756 / 0 [capacity: 1,000,000]
✅ 👪 hirish-ln: 632189499363557376 (Last update: 11:43 UTC on Tuesday, 7 May 2019)
Pubkey: 036d81bb87af589f949dec53af1b3121c84048d0913eb56945cbbb62c5cb4fcb6f
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,714 / 0 [capacity: 1,000,000]
✅ 👪 SLL: 632187300239048704 (Last update: 11:39 UTC on Tuesday, 7 May 2019)
Pubkey: 039401f72bc0d40efb58b01de15527a2a5ae1943d7c29067b725a1467a93c7e66f
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,714 / 0 [capacity: 1,000,000]
✅ 👪 ln.taborsky.cz: 632189499363622912 (Last update: 11:43 UTC on Tuesday, 7 May 2019)
Pubkey: 0265fae305778b7cb157365f70cf3a2047d2cad5c1ccc5f550c6d8a033084a8ea5
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,714 / 0 [capacity: 1,000,000]
✅ 👪 VIX18: 632187300238983168 (Last update: 08:11 UTC on Saturday, 4 May 2019)
Pubkey: 03f8ab9b7496be92ce370e0224661d5d2de80bca8f505d66f1226d0e6002007d2a
Fees: 1,000+1/40 / --+--/--
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,714 / 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:
✅ 👪 BitMEXResearch: 631655136611991552 (Last update: 21:31 UTC on Monday, 6 May 2019)
Pubkey: 0395033b252c6f40e3756984162d68174e2bd8060a129c0d3462a9370471c6d28f
Fees: 1,000+1/40 / 1+10/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,773 / 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]
✅ 👪 LightningTo.Me: 632050960802447360 (Last update: 07:22 UTC on Tuesday, 7 May 2019)
Pubkey: 03bb88ccc444534da7b5b64b4f7b15e1eccb18e102db0e400d4b9cfe93763aa26d
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,771 / 0 [capacity: 1,000,000]
✅ 👪 Sagittarius A: 632050960773152769 (Last update: 11:15 UTC on Tuesday, 7 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]
✅ 👪 ln.BitSoapBox.com: 632113632926957568 (Last update: 22:49 UTC on Monday, 6 May 2019)
Pubkey: 021607cfce19a4c5e7e6e738663dfafbbbac262e4ff76c2c9b30dbeefc35c00643
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,760 / 0 [capacity: 1,000,000]
✅ 👪 blackgold: 632112533487681536 (Last update: 22:29 UTC on Monday, 6 May 2019)
Pubkey: 02f40890af885da4673f0ee9725ee74bb2c66d6491cc4334056a2701057993e61d
Fees: 1,000+1/40 / 250+10/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,756 / 0 [capacity: 1,000,000]
✅ 👪 hirish-ln: 632189499363557376 (Last update: 11:43 UTC on Tuesday, 7 May 2019)
Pubkey: 036d81bb87af589f949dec53af1b3121c84048d0913eb56945cbbb62c5cb4fcb6f
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,714 / 0 [capacity: 1,000,000]
✅ 👪 SLL: 632187300239048704 (Last update: 11:39 UTC on Tuesday, 7 May 2019)
Pubkey: 039401f72bc0d40efb58b01de15527a2a5ae1943d7c29067b725a1467a93c7e66f
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,714 / 0 [capacity: 1,000,000]
✅ 👪 ln.taborsky.cz: 632189499363622912 (Last update: 11:43 UTC on Tuesday, 7 May 2019)
Pubkey: 0265fae305778b7cb157365f70cf3a2047d2cad5c1ccc5f550c6d8a033084a8ea5
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,714 / 0 [capacity: 1,000,000]
✅ 👪 VIX18: 632187300238983168 (Last update: 08:11 UTC on Saturday, 4 May 2019)
Pubkey: 03f8ab9b7496be92ce370e0224661d5d2de80bca8f505d66f1226d0e6002007d2a
Fees: 1,000+1/40 / --+--/--
Balances: [🥝🥝🥝🥝🥝🥝🥝🥝🥝🥝] 988,714 / 0 [capacity: 1,000,000]
✅ 👪 Bitrefill.com: 631589165900038144 (Last update: 10:03 UTC on Tuesday, 7 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: 04:26 UTC on Tuesday, 7 May 2019)
Pubkey: 0242a4ae0c5bef18048fbecf995094b74bfb0f7391418d71ed394784373f41e4f3
Fees: 1,000+1/40 / 1,000+1/40
Balances: [🥝🥝🥝🥝🥝🥕🥕🥕🥕🥕] 506,714 / 482,056 [capacity: 1,000,000]
✅ 👪 powernode.io: 631589165899972608 (Last update: 11:15 UTC on Tuesday, 7 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: 11:43 UTC on Tuesday, 7 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: 02:57 UTC on Tuesday, 7 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: 11:15 UTC on Tuesday, 7 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: 04:20 UTC on Tuesday, 7 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]