Skip to content

Instantly share code, notes, and snippets.

@GordianLN
Last active October 9, 2022 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GordianLN/5e12d1bf2033d631391bd47985edd063 to your computer and use it in GitHub Desktop.
Save GordianLN/5e12d1bf2033d631391bd47985edd063 to your computer and use it in GitHub Desktop.
Gordian LN node info

2022-10-09

More force closes in the meantime, one even happened for a pending htlc while both me and my peer were online... but the node is still active, which is good!

*click* for more

2022-09-20

Lots happened in the meantime, and lots I didn't update in here: cool new features of my script, issues here and there, force closes (oh those damn, pesky, stinky force closes, I almost decided to quit), and I'll probably go on not updating this, but feel free to holler at me on Telegram for anything!

2022-06-04

GordianWatch service has been launched! For now free and for my channel peers only, will notify you as soon as you are seen offline by my node, ask me for details.

2022-05-25

Gordian is now hybrid!

2022-05-19

Gordian was chosen by clboss as a channel peer for SethForPrivacy, overall a cool experience to realize that an algo examined my node over a period of time and finally decided to throw liquidity at it.

2022-05-12

ZeroFeeRouting is another cool operator to look for! There was an issue with a script they were using that caused a force close of our channel, even without a pending HTLC, due to me being offline for about 12hrs straight due to a power issue. I planned to re-open to them no matter what, but this makes me all the happier to do so!

2022-05-02

Gordian surpassed the 30 channels mark, and the 2.1M capacity streak was broken by an incoming 3M channel from South Korea (very cool operator, thank you!) I decided to enable max_htlc for all my channels, and increase CLTV delta to reduce risk of force closures (I'll take the slightly lower chance of being selected for routes, safety above all), plus I reduced the updatechanpolicy frequency from every 3hrs to every 6.

2022-04-30

Second friday report in the green, costs are at 96% of total income after a net month of activity, I am still looking into extending my reach into the network to be selected in more paths.

2022-04-28

It's like LN was a malicious lover, welcoming me by giving a lot of sudden affection (in the form of profitability in a record timeframe), only to throw me down with disdain (as I'm hardly routing anything now, while activity was way more in the past week, even at higher fees than now). My script works without sentiment, as it only knows how to scan for flow, and won't take it personally; please have patience, Gordian's peers. On a side note, there's that one peer whose node really likes to disable our channel, let's hope we find a way to solve that.

2022-04-25

Gordian is profitable! The accounting shows 10sats of net profit over the life of the node, which has been quite a short life, as first channel dates back to 21st march, all fees were frozen at 2500ppm for the first 6 days until I got to 11 peers and started the fee autotuning script, 12 days offline starting 4th april because of filesystem failure, this means the node became profitable in less than 20 days, is it a record or what?

2022-04-24

I need to mark the date: I just received an unsolicited inbound channel, of the just right capacity, 2.1M, by GirthMaul, this is my very first spontaneus inbound channel and I am really happy!

2022-04-23

G-Spot, albeit arguably expensive, is ran by a very dependable operator.

2022-04-21

First month after launch, minus 12 days of downtime, minus first 6 days of very high default fees while waiting to get critical edge mass, it has now been 12 days of "proper routing", and I am at 156% costs vs earned fees, break even here I come!

2022-04-16

I lost a very good peer today! Goes to show that even if you are an excellent system operator, rm -rf is a great leveler waiting for you just around the corner; I wish them to get back up ASAP.

2022-04-15

Gordian is back up and running! just one casualty for a force close after a few days of being offline; luckily the postgresql dump I had was fine, ended up using the main instance dump even if the replica looked "newer" (also enabled synchronous replication this time): lightningnetwork/lnd#6395

2022-04-14

Blockchain is fully synced, ETA for LN node reboot is 15th or 16th.

2022-04-10

Blockchain sync at 70% roughly, system has been hardened even more than before, with solid zswap setting, new leaner power SSD's (Kingston A400's, slower for desktop usage, perfect for node operations), more stable (I hope) and definitely better looking SATA adapters, and new USB3 hub incoming.

2022-04-04

Gordian is offline. Some mean errors with Raid1 setup, not exactly troubleshooted yet (most probably a silly power delivery issue to the disks, that started a chain reaction of R/W errors which didn't stop even after fixing power lines), led to system instability and freezes. New USB3 powered HUB and new USB-SATA adapters are incoming, and tests will be done right after; worst case scenario, I'll also need to swap out SSD's, but this will be clear after new components start arriving. I beg my pardon to all my current peers, please do not close channels to me, as my postgresql database is working and tested, last time I had to cold reboot the system I made sure I could connect correctly to the network, I stopped accepting forwards with BOS, and then shut down LND gracefully. I also have the postgres replica sitting in another ext4 disk that's not been touched by the failures, and I have tested and verified working a procedure to dump the postegresl and import it in another LND instance successfully on playground signet.

2022-03-27

Reached 12 edges to 11 peers, enough to be palatable as a routing node, so my scripts have been unleashed and fee tuner + rebalancer are now running

2022-03-21

Opened my very first reciprocal channels with a peer, too bad it couldn't be a dualfunded channel, as being without inbound I couldn't receive the initiating keysend

What

Fully automated lnd node, launched on mainnet on 2022-03-21, after months of testing my own scripts on Plebnet Playground.

Who

Me! Holler on telegram if you are cool and friendly.

How

  • lnd.conf is set to open at 2500ppm and 1.199base
  • fees will be slowly tuned down to search for flow (or back up again to shape it)
  • max_htlc and 9999basefee are NOT active anymore, to examine failures for policy updates, fees are only tuned for flow, not for local balance
  • rebalances run frequently and automatically, as long as they are profitable
  • multiple channels with same peer are transparently managed by my script as if they were one channel

Why

For fun! And to rebel against Gvt's holding money hostage with banks' complicity! What else?! Oh, also free sprinkling magic sats coming over lightning through the intertubes.

When

Happening as you read this!

Caveats

  • you will have to be patient while my autofee script does its thing in search for flow
  • script tries to set absolute minimum fees that cover open/close costs, but this will be lifted in case of very little flow
  • tor only, at least for now; if and when profit is enough I will consider hybrid mode with a VPN
  • internet connection is not datacenter-grade, but top-tier-home-grade-stable (see above notice about profit for 3G redundancy)
  • I perfectly understand the logic behind girrrthy channels, yet I am not a whale and have my own logic which I hope will pay off, so I have to spread my sats thin!

Quirks

Node has been hardened as best as I could, featuring:

  • Raspberry Pi 4 8GB, 2x Kingston A400 SSD's (1Tb + 256GB) + 1x cheap 128GB SSD, on an externally powered USB3 hub
  • i5-6300u 8GB laptop, 256GB Intel M2 + 960GB Kingston A400 Sata SSD's
  • btrfs RAID1
  • zswap enabled
  • posgresql backend synchronous replication
  • encrypted data partitions
  • encrypted cloud backups
  • custom on/offline notification system
  • DIY UPS with voltage monitoring via serial interface, stopping services when battery is getting low, and restarting them when AC is back up and battery is charged enough
  • laptop battery is a great integrated UPS that also preserves its life thanks to linux power management
  • notification watchdogs for system load, RAM usage, CPU temperature, SSD health
  • SSH login via hardware key
  • I have NO watchtowers whatsoever! (wink wink)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment